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
  • Did you added the system_nrf51.c & gcc_startup_nrf51.s source files to your project ? Those files are in the sdk under Source/templates. system_nrf51.c is for core init and the gcc_startup_nrf51 is for run time init. Without those 2 files, your app will crash on startup. I think that's what is happing to your app. You get that when your app crashes from start, before the first break point.

  • The blinky_example does not use the s110. I should use the blank linker script for this one. Get a feel how the environment works first.

    When to start working with s110. You'll need need to flash in the soft device first then DFU using nRFGo. Then use DFU to upload your app. After that you can debug with Eclipse. That's the work around s110 issue for debugging. I have posted full Eclipse project for DFU, see previous comment. Use the serial version to upload your app via segger cdc.

Reply
  • The blinky_example does not use the s110. I should use the blank linker script for this one. Get a feel how the environment works first.

    When to start working with s110. You'll need need to flash in the soft device first then DFU using nRFGo. Then use DFU to upload your app. After that you can debug with Eclipse. That's the work around s110 issue for debugging. I have posted full Eclipse project for DFU, see previous comment. Use the serial version to upload your app via segger cdc.

Children
No Data
Related