Hi all,
I tried to follow this tutorial to be able to use GDB as debugger but failed right in the beginning because JLinkGDBServer could not connect. Here's the log I get:
user@xubuntu$/opt/SEGGER/JLink/JLinkGDBServer -if swd -port 2331 -device nRF5340_xxAA_APP 13:41:41 SEGGER J-Link GDB Server V6.84a Command Line Version JLinkARM.dll V6.84a (DLL compiled Sep 7 2020 18:27:57) Command line: -if swd -port 2331 -device nRF5340_xxAA_APP -----GDB Server start settings----- GDBInit file: none GDB Server Listening port: 2331 SWO raw output listening port: 2332 Terminal I/O port: 2333 Accept remote connection: yes Generate logfile: off Verify download: off Init regs on start: off Silent mode: off Single run mode: off 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: nRF5340_xxAA_APP Target interface: SWD Target interface speed: 4000kHz Target endian: little Connecting to J-Link... J-Link is connected. Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 Hardware: V1.00 S/N: 960178404 Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB Checking target voltage... Target voltage: 3.30 V Listening on TCP/IP port 2331 Connecting to target... ERROR: Could not connect to target. Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection... Shutting down... Could not connect to target. Please check power, connection and settings.%
Strange part is that I could flash the samples/empty_app_core/ from ConnectSDK sucessfully. My idea is to have something like this and debug projects in VSCode.
Board is a nRF5340 PDK. Xubuntu OS.
What should I check to determine what's causing this?
Thanks in advance.