riscv-openocd/src
Tomas Vanek 31af18e9d1 jtag/drivers/bitbang: limit SWD WAIT retries by timeout
The bitbang driver kept retrying a SWD command as long as
the debugged device had been responding by SWD WAIT.
If the DP stalled in WAIT permanently, OpenOCD hanged.

Check 0.5 sec timeout in WAIT retry loop.

While on it insert a short alive_sleep() if the command
is retried 20 or more times.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Change-Id: I744e56e21a5a2dc2c4494cc0d7bbcb4be14ddb23
Reviewed-on: https://review.openocd.org/c/openocd/+/8153
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
2024-03-16 14:37:26 +00:00
..
flash flash/nor/nrf5: drop useless for cycle condition 2024-03-10 17:54:52 +00:00
helper helper/log: add LOG_CUSTOM_LEVEL() macro 2024-03-16 14:36:48 +00:00
jtag jtag/drivers/bitbang: limit SWD WAIT retries by timeout 2024-03-16 14:37:26 +00:00
pld jtag: Rename 'hasidcode' to 'has_idcode' 2023-12-16 07:51:56 +00:00
rtos OpenOCD memory leak in `hwthread_update_threads()` 2023-10-27 11:41:30 +00:00
rtt rtt/tcl: Fix line indentation 2023-11-18 11:38:27 +00:00
server gdb_server: fix segfault with GDB command 'flash-erase' 2024-03-09 11:04:29 +00:00
svf svf: make command 'svf' syntax consistent 2023-03-25 18:09:06 +00:00
target target/arm_adi_v5: introduce adiv5_jim_configure_ext() 2024-03-16 14:35:24 +00:00
transport transport: rewrite command 'transport select' as COMMAND_HANDLER 2023-03-25 18:09:47 +00:00
xsvf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
hello.c hello: include hello.h 2023-05-18 10:13:41 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c openocd: rewrite command 'version' as COMMAND_HANDLER 2023-03-25 18:10:54 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00