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

  • I see a bunch of Verify failed. Are you using the Nordic Kit or your own board ? I seems unable to flash your app properly.

  • I use Nordic dev kit, and able to flash in keil without problem

  • try disable SWO and Semihosting settings. Try different jtag/swd speed. It's on the startup tab of the debug configuration.

  • Thanks for the suggestions: https://www.dropbox.com/s/mds4tkwgneb8kiq/Screenshot%202014-04-14%2009.30.08.png https://www.dropbox.com/s/f32ktwe19b9dt3y/Screenshot%202014-04-14%2009.35.52.png is eclipse settings https://www.dropbox.com/s/hbitsyecckw067z/1.jpg is keil settings

    Read 4 bytes @ address 0x00000000 (Data = 0x20001C48) Target interface speed set to 30 kHz Resetting target Halting target CPU... ...Target halted (PC = 0x00012B98) 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= 20001C48, MSP= 20001C48, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 00012B98 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Target interface speed set to 2000 kHz Flash breakpoints enabled Read 4 bytes @ address 0x00012B98 (Data = 0x681B4B15) Downloading 16192 bytes @ address 0x00014000 - Verify failed Downloading 15968 bytes @ address 0x00017F40 - Verify failed Downloading 16160 bytes @ address 0x0001BDA0 - Verify failed Downloading 16096 bytes @ address 0x0001FCC0 - Verify failed Downloading 16080 bytes @ address 0x00023BA0 - Verify failed Downloading 16176 bytes @ address 0x00027A70 - Verify failed Downloading 12208 bytes @ address 0x0002B9A0 - Verify failed Downloading 68 bytes @ address 0x0002E950 - Verify failed Downloading 8 bytes @ address 0x0002E994 - Verify failed Downloading 2396 bytes @ address 0x0002E99C - Verify failed Writing register (PC = 0x0002e951) Read 4 bytes @ address 0x0002E950 (Data = 0xFFFFFFFF) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x001C4800) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x001C4800) Resetting target Halting target CPU... ...Target halted (PC = 0x00012B98) 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= 20001C48, MSP= 20001C48, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 00012B98 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 0x00012B98 (Data = 0x681B4B15) Starting target CPU... Debugger requested to halt target... ...Target halted (PC = 0x0000FE3E) Reading all registers Read 4 bytes @ address 0x0000FE3E (Data = 0xBF20BF40) Read 4 bytes @ address 0x0000016A (Data = 0x9801B401) Read 4 bytes @ address 0x0000016A (Data = 0x9801B401) GDB closed TCP/IP connection

Related