This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

J-Link eclipse prb

Hello,

I'm using Eclipse as my IDE to program the NRF52833DK with zephyr OS project . I build and flash the sample program blinky_pwm .

But I'm not able to debug the soft.

I setup the debug configuration to use the GDB segger J-link debbuger but I have got an error see below:

the reason it is not the target device ? , I put NRF52, but there is not nrf52 device in J-link in devices directory !!!

which debugger tools could I use for the nrf52833DK  ?

error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:2331
Error message from debugger back end:
Truncated register 16 in remote 'g' packet
Failed to execute MI command:
-target-select remote localhost:2331
Error message from debugger back end:
Truncated register 16 in remote 'g' packet
Truncated register 16 in remote 'g' packet

the GDB server log :

SEGGER J-Link GDB Server V6.88a Command Line Version

JLinkARM.dll V6.88a (DLL compiled Nov 18 2020 16:08:10)

Command line: -if swd -device nrf52 -endian little -speed 4000 -port 2331 -swoport 2332 -telnetport 2333 -vd -noreset -noir -localhostonly 1
-----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: localhost only
Generate logfile: off
Verify download: on
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: nrf52
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
Hardware: V1.00
S/N: 685545425
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
GDB closed TCP/IP connection (Socket 10)
Restoring target state and closing J-Link connection...
Shutting down...

Parents Reply Children
Related