Hi,
I'm trying to connect to hook-up a debugger in VSCode to my target but am unable to. The hardware is custom and JLink connects fine with nrfjprog to program and erase the device.
I'm using a Linux VM with the SEGGER J-Link USB device passed through to the guest which is running on Ubuntu 20.04
The command I use to connect is JLinkGDBServer -singlerun -strict -timeout 0 -nogui -port 2331 -swoport 2332 -telnetport 2333 -device nRF52840_XXAA and the output I get is:
SEGGER J-Link GDB Server V7.58b Command Line Version
JLinkARM.dll V7.58b (DLL compiled Nov 16 2021 15:04:27)
Command line: -singlerun -nogui -if jtag -port 50000 -swoport 50001 -telnetport 50002 -device nRF52840_xxAA
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 50000
SWO raw output listening port: 50001
Terminal I/O port: 50002
Accept remote connection: yes
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: nRF52840_xxAA
Target interface: JTAG
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
[2021-12-07T22:41:38.903Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...