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
  • Hi Leo,

     Here is what I know works for me.  Development on OSX with Elcipse Kepler.  Without DFU loaded, debug works directly with s110 pre-flashed.  If DFU loaded.  i need first upload my app using dfu.  After that I can use Eclipse to debug.  It seem that DFU sets some flag to make s110 jumps to the App.  Flashing with Eclipse does not set the flag so s110 always jumps to DFU.  That is what I suspected, need to be confirmed.  When DFU is not loaded, S110 don't see it so it jumps to the App directly.  So if you work with ble, then you need to Flash the s110 first into the chip using nFRGo.
    
  • Hi Nguyen, you were right. Its possible to debug. I can debug the "gcc_startup_nrf5.S" file, and step through "SystemInit()" in "system_nrf51.c". But in the function "_start" there is a call to __libc_init_array, and here my application crashes (i guess.. here is picture: http://postimg.org/image/w7hwk0a71/). Have no clue why.. Another question i have is, which gcc compiler flags should i use .. are there some important? (for the linker i use: " -mabi=aapcs --specs=nano.specs -lc -lnosys -Wl,--gc-sections" and for the target processor i use: "-ffunction-sections -fdata-sections". Thanks a lot in advance!

Reply
  • Hi Nguyen, you were right. Its possible to debug. I can debug the "gcc_startup_nrf5.S" file, and step through "SystemInit()" in "system_nrf51.c". But in the function "_start" there is a call to __libc_init_array, and here my application crashes (i guess.. here is picture: http://postimg.org/image/w7hwk0a71/). Have no clue why.. Another question i have is, which gcc compiler flags should i use .. are there some important? (for the linker i use: " -mabi=aapcs --specs=nano.specs -lc -lnosys -Wl,--gc-sections" and for the target processor i use: "-ffunction-sections -fdata-sections". Thanks a lot in advance!

Children
No Data
Related