openocd/src
Andrey Smirnov 5fcd6d77b3 stlink: Add workaround for intermittent FW info retrieval failure
It appears that on some host USB configurations(2012 MacBook Air)
multiple restarts of openocd tool cause the FW on STLINKv2 dongle to
go into a weird state in which it will no longer respond to
STLINK_GET_VERSION command. This patch adds code that, if said request
fails for the first time, attempts to reset the device and retry to
initialize it and obtain FW information one more time.

Change-Id: I7227fc972adb49d52ae700ad48ab9f66b2aaa72c
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-on: http://openocd.zylin.com/1561
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2013-08-29 07:59:19 +00:00
..
flash stm32lx flash: fix flash size for Medium+ devices 2013-08-15 14:49:27 +00:00
helper Add support for 64 bit parameter to irscan 2013-07-01 08:37:14 +00:00
jtag stlink: Add workaround for intermittent FW info retrieval failure 2013-08-29 07:59:19 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos gdb_server: support gdb target description 2013-08-07 21:00:40 +00:00
server gdb_server: check target before executing event callback 2013-08-07 21:01:55 +00:00
svf update files to correct FSF address 2013-06-05 19:52:42 +00:00
target target: clear running_alg flag after reset 2013-08-07 21:03:27 +00:00
transport update files to correct FSF address 2013-06-05 19:52:42 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am automake: Don't install libopenocd 2013-07-15 10:06:18 +00:00
openocd.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
openocd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00