riscv-openocd/src
Peter Collingbourne 0a20e78b75 jtag/drivers/cmsis_dap: run queue on reaching transaction limit
We currently fail the transfer when issuing more than 255 transactions
at once, e.g.

> read_memory 0x10000000 32 256
CMSIS-DAP transfer count mismatch: expected 257, got 1

This is because the protocol only supports 255 transactions per packet
(65535 for block transactions), and as a result we truncate the
transaction count when assembling the packet. Fix it by running the
queue when we hit the limit.

Change-Id: Ia9e01e3af5ad035f2cf2a32292c9d66e57eafae9
Signed-off-by: Peter Collingbourne <pcc@google.com>
Fixes: 40bac8e8c4 ("jtag/drivers/cmsis_dap: improve USB packets filling")
Reviewed-on: https://review.openocd.org/c/openocd/+/7483
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2023-02-26 10:03:42 +00:00
..
flash flash/nor/spi: add 25pe{10/20/40/80/16} 2023-02-18 18:09:22 +00:00
helper helper: command: drop last LF ('\n') from sequence of command_print() 2023-02-26 10:00:52 +00:00
jtag jtag/drivers/cmsis_dap: run queue on reaching transaction limit 2023-02-26 10:03:42 +00:00
pld fix leaky file-handle in virtex2 driver 2022-10-08 07:54:49 +00:00
rtos rtos: remove config.h includes from stackings headers 2023-01-28 15:55:36 +00:00
rtt openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
server openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
svf openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
target target: arc: rewrite command 'arc add-reg' as COMMAND_HANDLER 2023-02-03 22:48:48 +00:00
transport adapter: Improve three adapter-related prints 2023-01-15 14:57:25 +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 openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +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: revert workarounds for 'expr' syntax change 2023-01-15 14:46:57 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00