openocd/src/jtag
Philip Craig ff120440d6 jlink: improve USB read during jlink_tap_execute
Previously, when doing EMU_CMD_HW_JTAG3 commands we would do two reads,
one to read the data, and one to read the result. However, we can just
do a single larger read instead.

The motivation for this change is a weird problem. If I run the Segger
software before running OpenOCD, then the first read always fails:
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)

Sniffing the USB traffic shows that the J-Link is returning an
overflow error, meaning it is expecting to return the full result
in a single read.

Change-Id: I75e020d3b3732c9a74ee3d31838fdf17a7fac24c
Signed-off-by: Philip Craig <phil@blackmoth.com.au>
Reviewed-on: http://openocd.zylin.com/1447
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-09-25 15:28:07 +00:00
..
aice libusb: require pkg-config support 2013-09-13 21:43:18 +00:00
drivers jlink: improve USB read during jlink_tap_execute 2013-09-25 15:28:07 +00:00
hla hla: move memory read/write functionality to driver 2013-09-25 13:53:34 +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 jtag: drivers: Add JTAP VPI client driver 2013-09-08 15:37:51 +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