openocd/src/jtag/drivers
Tarek BOCHKATI 3f778c7c63 stlink (tcp): manage scattered stlink-server responses
detected in ubuntu 20.04
sometimes, the stlink-server response could be segmented on multiple
packets.

this causes stlink_tcp_send_cmd to fail with the following msg:
Error: failed to receive USB CMD response
because the received_size < expected size

to fix the issue, do recv in a loop till all data is received
or timeout is reached.

Change-Id: I46cc60c231b4cc52f150ead268f843bc60c41149
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6671
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
2021-11-13 10:52:25 +00:00
..
libjaylink@9aa7a5957c libjaylink: Update to 0.2.0 release 2020-07-26 20:11:11 +01:00
OpenULINK openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
usb_blaster Remove remaining references to FTD2XX driver 2021-11-05 22:44:19 +00:00
versaloon openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
amt_jtagaccel.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
arm-jtag-ew.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
at91rm9200.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
bcm2835gpio.c jtag: drivers: bcm2835gpio: don't allow GPIOs > 31 2021-11-05 22:44:47 +00:00
bitbang.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
bitbang.h bitbang: split jtag and swd operations 2020-07-14 00:38:21 +01:00
bitq.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
bitq.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
buspirate.c drivers/buspirate: Group adapter commands 2021-08-14 13:36:47 +01:00
cmsis_dap_usb_bulk.c jtag/cmcis_dap: use COMMAND_PARSE_NUMBER in command handlers 2021-08-22 11:10:26 +00:00
cmsis_dap_usb_hid.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
cmsis_dap.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
cmsis_dap.h drivers/cmsis-dap: update for newest protocol version 2021-07-31 10:08:24 +01:00
driver.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
dummy.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
ep93xx.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
ft232r.c drivers/ft232r: Group adapter commands 2021-08-14 13:37:36 +01:00
ftdi.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
gw16012.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
imx_gpio.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
jlink.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
jtag_dpi.c drivers/jtag_dpi: Group adapter commands 2021-08-14 13:34:49 +01:00
jtag_vpi.c drivers/jtag_vpi: Group adapter commands 2021-08-14 13:35:37 +01:00
kitprog.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
libftdi_helper.h openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
libusb_helper.c jtag/adapter: move 'usb location' code in adapter.c 2021-11-13 10:47:02 +00:00
libusb_helper.h jtag: rename CamelCase symbols 2021-07-02 17:10:15 +01:00
linuxgpiod.c drivers/linuxgpiod: add support for opendrain trst 2021-11-05 22:43:48 +00:00
Makefile.am jtag/adapter: move 'usb location' code in adapter.c 2021-11-13 10:47:02 +00:00
Makefile.rlink Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
minidriver_imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
mpsse.c jtag/mpsse: fix SIGSEGV for use after free 2021-08-14 13:31:27 +01:00
mpsse.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nulink_usb.c jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
opendous.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
openjtag.c Remove remaining references to FTD2XX driver 2021-11-05 22:44:19 +00:00
osbdm.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
parport.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
presto.c drivers/presto: Group adapter commands 2021-08-14 13:33:42 +01:00
remote_bitbang.c Speed up remote bitbang. 2021-09-25 13:13:59 +00:00
rlink_call.m4 coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_dtc_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_ep1_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_init.m4 Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
rlink_speed_table.c coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_st7.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink.c openocd: manually remove NULL comparisons 2021-07-24 10:38:19 +01:00
rlink.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
rshim.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
stlink_usb.c stlink (tcp): manage scattered stlink-server responses 2021-11-13 10:52:25 +00:00
sysfsgpio.c drivers/sysfsgpio: Group adapter commands 2021-08-14 13:36:27 +01:00
ti_icdi_usb.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
ulink.c drivers/ulink: Group adapter commands 2021-08-14 13:34:05 +01:00
usbprog.c drivers/usbprog: switch to libusb1 2021-04-05 23:25:02 +01:00
vsllink.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
xds110.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
xlnx-pcie-xvc.c drivers/xlnx-pcie-xvc: Group adapter commands 2021-08-14 13:33:55 +01:00