stlink: handle error GET_IDCODE
authorAntonio Borneo <borneo.antonio@gmail.com>
Tue, 5 Feb 2019 10:25:19 +0000 (11:25 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 7 Mar 2019 21:00:53 +0000 (21:00 +0000)
commit720380f9e372d9bab19445ff300ef1cb58e70a12
tree63ccb7a6454226483ad9742edeee130ef8fef857
parent5c55fbb065a829beafa233e5c0c0be56d9664934
stlink: handle error GET_IDCODE

When the connection with target is lost on the physical JTAG/SWD
link (either wire disconnected or DAP/TAP in reset), STLINK fail
to connect and returns error STLINK_JTAG_GET_IDCODE_ERROR.

Add it in the list of known errors.

Change-Id: Iabd6e6892111726f614345497d9286554bfe4ac0
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4982
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/jtag/drivers/stlink_usb.c