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

Eclipse with SDK5.2 nan-29

Hello,

I'm trying to get the SDK examples working in Eclipse. I have followed all steps(except debugging part) in the nan-29, but i can only import the s110/ble_hrs example with missing headers(see attachment)? Is there any information about how to import for example the ble_template project and set all header/source files correctly? All help will be appreciated!

Regards, Pascal

GCC_import.png

Parents
  • I've followed everything in this thread but im still unable to debug, Im using the nRFGo Motherboard with the nRF51822 Development kit board and I'm able to build the blinky demo fine but when i go to debug i get a similar issue to what pascal posted above but i think the issue is with the J-Link as i get the following in the jlink log

    SEGGER J-Link GDB Server V4.86a GUI Version
    
    JLinkARM.dll V4.86a (DLL compiled Jun 11 2014 17:22:49)
    
    -----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:     5 sec.
    ------J-Link related settings------
    J-Link Host interface:         USB
    J-Link script:                 none
    J-Link settings file:          none
    ------Target related settings------
    Target device:                 Cortex-M0
    Target interface:              SWD
    Target interface speed:        1000kHz
    Target endian:                 little
    
    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link Lite-Cortex-M V8 compiled Aug 29 2012 15:24:23
    Hardware: V8.00
    S/N: 538000310
    Feature(s): 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
    Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
    Target interface speed set to 1000 kHz
    Resetting target
    Halting target CPU...
    ...Target halted (PC = 0xFFFFFFFE)
    R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
    R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
    R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
    R12= FFFFFFFF, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= FFFFFFFC
    R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
    XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Select auto target interface speed (2000 kHz)
    Flash breakpoints enabled
    Semi-hosting enabled (VectorAddr = 0x08)
    Semihosting I/O set to TELNET Client
    SWO disabled succesfully.
    ERROR: Could not detect CPU clock speed. Verification of test code downloaded into RAM failed.
    
    Failed to enable SWO. Could not measure target CPU frequency.
    Downloading 12 bytes @ address 0x00008000 - Verify failed
    Downloading 2124 bytes @ address 0x0000800C - Verify failed
    Downloading 12 bytes @ address 0x00008858 - Verify failed
    Downloading 12 bytes @ address 0x00008864 - Verify failed
    Downloading 8 bytes @ address 0x00008870 - Verify failed
    Downloading 4 bytes @ address 0x00008878 - Verify failed
    Downloading 8 bytes @ address 0x0001087C - Verify failed
    Downloading 4 bytes @ address 0x00010884 - Verify failed
    Downloading 4 bytes @ address 0x00010888 - Verify failed
    Downloading 1336 bytes @ address 0x00010890 - Verify failed
    Writing register (PC = 0x000080a5)
    Read 4 bytes @ address 0x000080A4 (Data = 0xFFFFFFFF)
    Resetting target
    Halting target CPU...
    ...Target halted (PC = 0xFFFFFFFE)
    R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
    R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
    R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
    R12= FFFFFFFF, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= FFFFFFFC
    R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
    XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Read 4 bytes @ address 0xFFFFFFFE (Data = 0xFFFF0000)
    Starting target CPU...
    ...Target halted (PC = 0xFFFFFFFE)
    Reading all registers
    Read 4 bytes @ address 0xFFFFFFFE (Data = 0xFFFFFFFF)
    Read 4 bytes @ address 0xFFFFFFF4 (Data = 0x00000000)
    Reading 64 bytes @ address 0xFFFFFFC0
    Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
    

    It looks like its having issue getting the CPU clock?

Reply
  • I've followed everything in this thread but im still unable to debug, Im using the nRFGo Motherboard with the nRF51822 Development kit board and I'm able to build the blinky demo fine but when i go to debug i get a similar issue to what pascal posted above but i think the issue is with the J-Link as i get the following in the jlink log

    SEGGER J-Link GDB Server V4.86a GUI Version
    
    JLinkARM.dll V4.86a (DLL compiled Jun 11 2014 17:22:49)
    
    -----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:     5 sec.
    ------J-Link related settings------
    J-Link Host interface:         USB
    J-Link script:                 none
    J-Link settings file:          none
    ------Target related settings------
    Target device:                 Cortex-M0
    Target interface:              SWD
    Target interface speed:        1000kHz
    Target endian:                 little
    
    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link Lite-Cortex-M V8 compiled Aug 29 2012 15:24:23
    Hardware: V8.00
    S/N: 538000310
    Feature(s): 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
    Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
    Target interface speed set to 1000 kHz
    Resetting target
    Halting target CPU...
    ...Target halted (PC = 0xFFFFFFFE)
    R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
    R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
    R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
    R12= FFFFFFFF, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= FFFFFFFC
    R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
    XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Select auto target interface speed (2000 kHz)
    Flash breakpoints enabled
    Semi-hosting enabled (VectorAddr = 0x08)
    Semihosting I/O set to TELNET Client
    SWO disabled succesfully.
    ERROR: Could not detect CPU clock speed. Verification of test code downloaded into RAM failed.
    
    Failed to enable SWO. Could not measure target CPU frequency.
    Downloading 12 bytes @ address 0x00008000 - Verify failed
    Downloading 2124 bytes @ address 0x0000800C - Verify failed
    Downloading 12 bytes @ address 0x00008858 - Verify failed
    Downloading 12 bytes @ address 0x00008864 - Verify failed
    Downloading 8 bytes @ address 0x00008870 - Verify failed
    Downloading 4 bytes @ address 0x00008878 - Verify failed
    Downloading 8 bytes @ address 0x0001087C - Verify failed
    Downloading 4 bytes @ address 0x00010884 - Verify failed
    Downloading 4 bytes @ address 0x00010888 - Verify failed
    Downloading 1336 bytes @ address 0x00010890 - Verify failed
    Writing register (PC = 0x000080a5)
    Read 4 bytes @ address 0x000080A4 (Data = 0xFFFFFFFF)
    Resetting target
    Halting target CPU...
    ...Target halted (PC = 0xFFFFFFFE)
    R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
    R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
    R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
    R12= FFFFFFFF, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= FFFFFFFC
    R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
    XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Read 4 bytes @ address 0xFFFFFFFE (Data = 0xFFFF0000)
    Starting target CPU...
    ...Target halted (PC = 0xFFFFFFFE)
    Reading all registers
    Read 4 bytes @ address 0xFFFFFFFE (Data = 0xFFFFFFFF)
    Read 4 bytes @ address 0xFFFFFFF4 (Data = 0x00000000)
    Reading 64 bytes @ address 0xFFFFFFC0
    Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
    

    It looks like its having issue getting the CPU clock?

Children
Related