openocd/src/jtag
Tomas Vanek 65de7c95f4 jtag/drivers/kitprog: workaround serious firmware problem
Since commit 88f429ead0
5321: target/cortex_m: faster reading of all CPU registers
debugging with a kitprog adapter freezes at debug entry.

How to replicate:
 openocd -f interface/kitprog.cfg -f target/psoc4.cfg

Connect to telnet server.
Make sure the target is running:
 resume

Halt the target:
 halt

Without this patch OpenOCD freezes in kitprog_hid_command()
in library call hid_write().

Reduce the number of SWD transactions sent in one USB bulk write
as a workaround, simply use shorter buffer.
For details see the comment in src/jtag/drivers/kitprog.c

Change-Id: I0116894d5ebf1655f6011f0d35acdbbc178cd48c
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7107
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2022-08-27 16:15:01 +00:00
..
aice openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
drivers jtag/drivers/kitprog: workaround serious firmware problem 2022-08-27 16:15:01 +00:00
hla openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
adapter.c jtag/adapter: Add command 'adapter gpio' 2022-08-15 13:24:22 +00:00
adapter.h jtag/adapter: Add command 'adapter gpio' 2022-08-15 13:24:22 +00:00
commands.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
commands.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
core.c target: add API to temporarily mask target polling 2022-08-15 13:22:06 +00:00
interface.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
interface.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
interfaces.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
interfaces.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
jtag.h target: add API to temporarily mask target polling 2022-08-15 13:22:06 +00:00
minidriver.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
startup.tcl drivers/linuxgpiod: Migrate to adapter gpio commands 2022-08-15 13:24:54 +00:00
swd.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
tcl.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00