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

nRF52 DK: Issues in Step wise debugging

Hi, I have followed all the instructions required for performing the build and debugging, but still unable to do step wise debugging. Please find the log for the output console.

**>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SEGGER J-Link GDB Server V5.12 Command Line Version
JLinkARM.dll V5.12 (DLL compiled Mar 30 2016 17:28:31)
-----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:               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: 682777651
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 0x00001B20 (Data = 0x0000E7FD)
Read 2 bytes @ address 0x00001B20 (Data = 0xE7FD)
Target interface speed set to 1000 kHz
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 0x00001B20 (Data = 0x0000E7FD)
Read 2 bytes @ address 0x00001B20 (Data = 0xE7FD)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Read 2 bytes @ address 0x00000AB6 (Data = 0xF441)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
R0 = 00000000, R1 = 00100000, R2 = 00000014, R3 = 00000001
R4 = 00002A54, R5 = 00002A54, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20002540, MSP= 20002540, PSP= 00000000
R14(LR) = 00000DA3, R15(PC) = 00001B20
XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x00001B20 (Data = 0x0000E7FD)
Read 2 bytes @ address 0x00001B20 (Data = 0xE7FD)
Setting breakpoint @ address 0x00000A86, Size = 2, BPHandle = 0x0001
Setting breakpoint @ address 0x00000AB6, Size = 2, BPHandle = 0x0002
Starting target CPU...
Debugger requested to halt target...
...Target halted (PC = 0x00001B20)
Reading all registers
Read 4 bytes @ address 0x00001B20 (Data = 0x0000E7FD)
Read 2 bytes @ address 0x00001B20 (Data = 0xE7FD)
Removing breakpoint @ address 0x00000A86, Size = 2
Removing breakpoint @ address 0x00000AB6, Size = 2
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Read 2 bytes @ address 0x00000A86 (Data = 0x6008)
Setting breakpoint @ address 0x00000A86, Size = 2, BPHandle = 0x0003
Setting breakpoint @ address 0x00000AB6, Size = 2, BPHandle = 0x0004
Starting target CPU...
Debugger requested to halt target...
...Target halted (PC = 0x00001B20)
Reading all registers
Read 4 bytes @ address 0x00001B20 (Data = 0x0000E7FD)
Read 2 bytes @ address 0x00001B20 (Data = 0xE7FD)
Removing breakpoint @ address 0x00000A86, Size = 2
Removing breakpoint @ address 0x00000AB6, Size = 2
Read 4 bytes @ address 0x00000DA2 (Data = 0xE7D82000)
Read 2 bytes @ address 0x00000DA2 (Data = 0x2000)
Read 4 bytes @ address 0x00000DA2 (Data = 0xE7D82000)
Read 2 bytes @ address 0x00000DA2 (Data = 0x2000)
Reading 64 bytes @ address 0x00001B00
Reading 64 bytes @ address 0x00001B40
Reading 64 bytes @ address 0x00001B80
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>**

Based on a recommendation change the GCC tool to V4.9Q4 release.

Can you please help me on the same?

Thanks and regards, Gupta DebuggingIssue.png

Parents
  • Please find the requested details

    1. SDK - nRF5 SDK v11.0.0

    2. Sample Application - nRF5_SDK_11.0.0_blinky_blank_pca10040

    3. Eclipse - Mars

    4. GNU ARM Tools - 4.9 2015q3

    5. nRF52 DK - PCA10040, V1.1.0, 2016.11, Serial Number - 682777651

    6. Linker script - blinky_gcc_nrf52.ld

      /* Linker script to configure memory regions. */

      SEARCH_DIR(.)
      GROUP(-lgcc -lc -lnosys)

      MEMORY
      {
      FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x80000
      RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
      }
      SECTIONS
      {
      .fs_data :
      {
      PROVIDE(__start_fs_data = .);
      KEEP(*(.fs_data))
      PROVIDE(__stop_fs_data = .);
      } > RAM
      } INSERT AFTER .data;
      INCLUDE "nrf5x_common.ld"

    Please let me know if you need more information.

Reply
  • Please find the requested details

    1. SDK - nRF5 SDK v11.0.0

    2. Sample Application - nRF5_SDK_11.0.0_blinky_blank_pca10040

    3. Eclipse - Mars

    4. GNU ARM Tools - 4.9 2015q3

    5. nRF52 DK - PCA10040, V1.1.0, 2016.11, Serial Number - 682777651

    6. Linker script - blinky_gcc_nrf52.ld

      /* Linker script to configure memory regions. */

      SEARCH_DIR(.)
      GROUP(-lgcc -lc -lnosys)

      MEMORY
      {
      FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x80000
      RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
      }
      SECTIONS
      {
      .fs_data :
      {
      PROVIDE(__start_fs_data = .);
      KEEP(*(.fs_data))
      PROVIDE(__stop_fs_data = .);
      } > RAM
      } INSERT AFTER .data;
      INCLUDE "nrf5x_common.ld"

    Please let me know if you need more information.

Children
No Data
Related