openocd/src
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
..
flash flash/stmqspi: fix build error with -Werror=maybe-uninitialized 2021-01-18 15:31:51 +00:00
helper configure: drop macro 'AC_HEADER_TIME' 2021-01-18 15:32:46 +00:00
jtag jlink: fix device discovery when network is off 2021-01-24 19:32:09 +00:00
pld openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
rtos rtos/hwthread: fix register list for armv7a 2020-12-26 15:47:55 +00:00
rtt openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
server gdb_server: fix HW thread status at gdb attach 2020-12-26 15:48:17 +00:00
svf openocd: fix command's usage string 2020-09-05 17:13:10 +01:00
target cortex_m: [FIX] ARMv8-M does not support VECTRESET 2021-01-18 15:32:03 +00:00
transport build: fix build with --enable-minidriver-dummy 2020-11-07 20:53:39 +00:00
xsvf openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
Makefile.am Add initial RTT support 2020-12-02 23:15:52 +00:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c Add initial RTT support 2020-12-02 23:15:52 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00