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

Help with breakpoints on Eclipse with sdk14 please

Hello

I have setup my Eclipse(neon3) on Linux following the instructions in devzone.nordicsemi.com/.../7

I cant compile and flash the image. But cant breakpoint. I have tried the solution in devzone.nordicsemi.com/.../. Updated the optimisation flags as

OPT = -O0 -g3

C/C++Application was already pointing to "_build/nrf52832_xxaa.out"

But still it does not work. Below is the log where it is stuck.

Can somebody please help?

Many Thanks,

Tony

For some reason attaching the log as text file is not working, pasting it below

SEGGER J-Link GDB Server V5.12g Command Line Version

JLinkARM.dll V5.12g (DLL compiled May 27 2016 17:03:38)

-----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:            on
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:                 nRF52832_xxAA
Target interface:              SWD
Target interface speed:        1000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 15 2016 18:03:17
Hardware: V1.00
S/N: 682397080
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
Read 4 bytes @ address 0x00000000 (Data = 0x20002008)
Read 2 bytes @ address 0x00000000 (Data = 0x2008)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x00000214)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20002008, MSP= 20002008, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 00000214
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x00000214 (Data = 0x47804806)
Read 2 bytes @ address 0x00000214 (Data = 0x4806)
Select auto target interface speed (1000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (Handle on BKPT)
Semihosting I/O set to TELNET Client
Read 4 bytes @ address 0x00000214 (Data = 0x47804806)
Read 2 bytes @ address 0x00000214 (Data = 0x4806)
Downloading 4096 bytes @ address 0x00023000 - Verified OK
Downloading 4096 bytes @ address 0x00024000 - Verified OK
Downloading 4096 bytes @ address 0x00025000 - Verified OK
Downloading 4096 bytes @ address 0x00026000 - Verified OK
Downloading 4096 bytes @ address 0x00027000 - Verified OK
Downloading 4096 bytes @ address 0x00028000 - Verified OK
Downloading 4096 bytes @ address 0x00029000 - Verified OK
Downloading 4096 bytes @ address 0x0002A000 - Verified OK
Downloading 4096 bytes @ address 0x0002B000 - Verified OK
Downloading 4096 bytes @ address 0x0002C000 - Verified OK
Downloading 4096 bytes @ address 0x0002D000 - Verified OK
Downloading 4096 bytes @ address 0x0002E000 - Verified OK
Downloading 4096 bytes @ address 0x0002F000 - Verified OK
Downloading 4096 bytes @ address 0x00030000 - Verified OK
Downloading 4096 bytes @ address 0x00031000 - Verified OK
Downloading 4096 bytes @ address 0x00032000 - Verified OK
Downloading 4096 bytes @ address 0x00033000 - Verified OK
Downloading 4096 bytes @ address 0x00034000 - Verified OK
Downloading 4096 bytes @ address 0x00035000 - Verified OK
Downloading 3996 bytes @ address 0x00036000 - Verified OK
Downloading 80 bytes @ address 0x00036F9C - Verified OK
Downloading 16 bytes @ address 0x00036FEC - Verified OK
Downloading 8 bytes @ address 0x00036FFC - Verified OK
Downloading 16 bytes @ address 0x00037004 - Verified OK
Downloading 72 bytes @ address 0x00037014 - Verified OK
Downloading 24 bytes @ address 0x0003705C - Verified OK
Downloading 8 bytes @ address 0x00037074 - Verified OK
Downloading 228 bytes @ address 0x0003707C - Verified OK
Downloading 20 bytes @ address 0x00037160 - Verified OK
Downloading 120 bytes @ address 0x00037174 - Verified OK
Comparing flash   [....................] Done.
Verifying flash   [....................] Done.
Writing register (PC = 0x00033ad8)
Read 4 bytes @ address 0x00033AD8 (Data = 0x4A074906)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Resetting target
Halting target CPU...
...Target halted (PC = 0x00000214)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
Read 2 bytes @ address 0x0002C92E (Data = 0xF7FF)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20002008, MSP= 20002008, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 00000214
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x00000214 (Data = 0x47804806)
Read 2 bytes @ address 0x00000214 (Data = 0x4806)
Setting breakpoint @ address 0x0002C92E, Size = 2, BPHandle = 0x0001
Starting target CPU...
Related