openocd/src/jtag
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
..
aice aice: fix FTBFS on ARM 2013-07-15 09:53:59 +00:00
drivers stlink: Add workaround for intermittent FW info retrieval failure 2013-08-29 07:59:19 +00:00
hla stlink: add SWO tracing support 2013-08-07 21:02:28 +00:00
minidriver update files to correct FSF address 2013-06-05 19:52:42 +00:00
minidummy update files to correct FSF address 2013-06-05 19:52:42 +00:00
zy1000 update files to correct FSF address 2013-06-05 19:52:42 +00:00
adapter.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
commands.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
commands.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
core.c Allow autoscan up to 64 bit IR lengths 2013-07-01 08:37:27 +00:00
driver.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
interface.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
interface.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
interfaces.c Add BCM2835 (as found in Raspberry Pi) interface driver 2013-06-10 09:39:48 +00:00
interfaces.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
jtag.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am aice: add Andes AICE support 2013-06-05 19:27:23 +00:00
minidriver.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
startup.tcl stlink: rename stlink cmd names 2012-12-23 21:45:42 +00:00
swd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
tcl.c Add support for 64 bit parameter to irscan 2013-07-01 08:37:14 +00:00
tcl.h update files to correct FSF address 2013-06-05 19:52:42 +00:00