openocd/src/jtag/drivers
Bohdan Tymkiv 090209275b jlink: fix device discovery when network is off
If user specifies a serial number for the jlink device, openocd
extends the search to network jlink devices too, without checking
if the host has a valid and functional network connection. If the
network is not functional, libjaylink returns error. This error
invalidates the discovery on USB, even if it was successful.

Factor-out parts of the jlink_init into separate jlink_open_device
function, use that function to firstly discover and match USB
devices and, if matching device was not found on the USB bus and
serial number was specified, repeat discovery and matching via TCP.

Fixes: https://sourceforge.net/p/openocd/tickets/294/

Change-Id: Iea0de1640d4e5b21ecc7e9c1dd6d36f214d647c2
Signed-off-by: Bohdan Tymkiv <bohdan200@gmail.com>
Reviewed-on: http://openocd.zylin.com/6025
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
Reviewed-by: Marc Schink <dev@zapb.de>
2021-01-24 19:32:09 +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 openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
versaloon jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
amt_jtagaccel.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
arm-jtag-ew.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
at91rm9200.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
bcm2835gpio.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
bitbang.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
bitbang.h bitbang: split jtag and swd operations 2020-07-14 00:38:21 +01:00
bitq.c jtag: use proper format with uint32_t 2020-09-05 17:12:25 +01:00
bitq.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
buspirate.c drivers/buspirate: remove empty lines at end of file 2020-09-05 18:44:19 +01:00
cmsis_dap_usb_bulk.c jtag/drivers/cmsis_dap: fix usb bulk connection logic 2020-11-15 21:38:10 +00:00
cmsis_dap_usb_hid.c Add CMSIS-DAP v2 support 2020-11-15 21:36:56 +00:00
cmsis_dap.c jtag/drivers/cmsis_dap: fix build with gcc 10.1.0 2020-11-15 21:38:29 +00:00
cmsis_dap.h jtag/drivers/cmsis_dap: fix build with gcc 10.1.0 2020-11-15 21:38:29 +00:00
driver.c jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +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 jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
ftdi.c driver/ftdi: skip trst in swd mode 2021-01-18 15:32:21 +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 jlink: fix device discovery when network is off 2021-01-24 19:32:09 +00:00
jtag_dpi.c openocd: fix incorrect doxygen comments 2021-01-13 11:33:16 +00:00
jtag_usb_common.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
jtag_usb_common.h jtag: drivers: provide initial support for usb path filtering 2019-02-07 07:51:30 +00:00
jtag_vpi.c openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
kitprog.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
libftdi_helper.h openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
libusb_helper.c libusb_helper: fix memory leak when no adapter is found 2020-06-06 18:04:57 +01:00
libusb_helper.h jtag/libusb_helper: permit adapters to compute their custom serials 2020-03-22 08:17:06 +00:00
linuxgpiod.c drivers/linuxgpiod: add led 2020-07-26 20:15:34 +01:00
Makefile.am Add CMSIS-DAP v2 support 2020-11-15 21:36:56 +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: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
mpsse.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nulink_usb.c hla: API: specify that read_reg/write_reg use regsel as parameter 2020-11-15 21:07:14 +00:00
opendous.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
openjtag.c openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
osbdm.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
parport.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
presto.c openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
remote_bitbang.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +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 jtag: use proper format with uint32_t 2020-09-05 17:12:25 +01:00
rlink.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rshim.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
stlink_usb.c stlink: handle read/write FPU registers in HLA API 2020-11-15 21:07:23 +00:00
sysfsgpio.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
ti_icdi_usb.c hla: API: specify that read_reg/write_reg use regsel as parameter 2020-11-15 21:07:14 +00:00
ulink.c openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
usb_common.c jtag/drivers/usb_common: return oocd error values 2019-01-08 10:02:43 +00:00
usb_common.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
usbprog.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
vsllink.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
xds110.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
xlnx-pcie-xvc.c jtag: xlnx-pcie-xvc: Declare function static 2020-10-30 22:02:19 +00:00