This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52 PCA10040 Debugging fails Eclipse

Hi,

I am trying to debug the blinky example project on the nRF52 development kit. I have followed the following tutorial: devzone.nordicsemi.com/.../

Building and flashing goes well, debugging however does not.

When I try to debug the blinky example, I receive an "Unexpected hwbreak stop reason" error in gdb. I am unable to pause or step-trough the code. It also tells: "No source available for "0x0"" as seen in the following screenshot.

The gdb log:

image description

The JLinkGDBServerCL.exe log:

SEGGER J-Link GDB Server V5.10q Command Line Version

JLinkARM.dll V5.10q (DLL compiled Mar  4 2016 16:03:41)

-----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 Feb 12 2016 12:15:53
Hardware: V1.00
S/N: 682147219
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 = 0x20008000)
Read 2 bytes @ address 0x00000000 (Data = 0x8000)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x00000BB4)
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= 20008000, MSP= 20008000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 00000BB4
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 0x00000BB4 (Data = 0x4A074906)
Read 2 bytes @ address 0x00000BB4 (Data = 0x4906)
Select auto target interface speed (1000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (Handle on BKPT)
Semihosting I/O set to TELNET Client
SWO disabled succesfully.
SWO enabled succesfully.
Read 4 bytes @ address 0x00000BB4 (Data = 0x4A074906)
Downloading 3100 bytes @ address 0x00000000 - Verified OK
Downloading 8 bytes @ address 0x00000C1C - Verified OK
Downloading 108 bytes @ address 0x00000C24 - Verified OK
Read 4 bytes @ address 0x00000BB4 (Data = 0x4A074906)
Read 2 bytes @ address 0x00000A82 (Data = 0x2300)
Read 2 bytes @ address 0x00000A82 (Data = 0x2300)
Comparing flash   [....................] Done.
Verifying flash   [....................] Done.
Resetting target
Halting target CPU...
...Target halted (PC = 0x00000BB4)
Read 2 bytes @ address 0x00000A82 (Data = 0x2300)
Read 2 bytes @ address 0x00000A82 (Data = 0x2300)
Read 2 bytes @ address 0x00000A82 (Data = 0x2300)
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= 20008000, MSP= 20008000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 00000BB4
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 0x00000BB4 (Data = 0x4A074906)
Setting breakpoint @ address 0x00000A82, Size = 2, BPHandle = 0x0001
Starting target CPU...
...Breakpoint reached @ address 0x00000A82
Reading 64 bytes @ address 0x00000000
Reading 64 bytes @ address 0x00000040
Reading 64 bytes @ address 0x00000080

Can somebody help me?

Thanks in advance.

Parents Reply Children
Related