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
  • @ Nguyen Hoan Hoang: can you explain to me how to setup these include files? Or you have any tutorial? I'm currently on windows and i've never used GNU arm toolset before. the current steps i've taken:

    1. new project->empty project(Cross ARM GCC)
    2. set toolchain path to C:\Program Files (x86)\GNU Tools ARM Embedded\4.8 2013q4\bin
    3. add s110\ble_template source files(main.c and pstorage_platform.h)

    GCC_ARM_Settings.png

Reply
  • @ Nguyen Hoan Hoang: can you explain to me how to setup these include files? Or you have any tutorial? I'm currently on windows and i've never used GNU arm toolset before. the current steps i've taken:

    1. new project->empty project(Cross ARM GCC)
    2. set toolchain path to C:\Program Files (x86)\GNU Tools ARM Embedded\4.8 2013q4\bin
    3. add s110\ble_template source files(main.c and pstorage_platform.h)

    GCC_ARM_Settings.png

Children
  • First thing is to set the proper processor. Click the "Target Processor" then select Cortex-M0.
    For include path, click on includes in the Cross ARM C Compile. You'll see a place to add all include path. You need add path to your sdk location. This is what I have.

    "${workspace_loc:/nrf51_sdk/nrf51822/Include/ble/ble_services}" "${workspace_loc:/nrf51_sdk/nrf51822/Include/sd_common}" "${workspace_loc:/nrf51_sdk/nrf51822/Include/ble}" "${workspace_loc:/nrf51_sdk/nrf51822/Include/s110}" "${workspace_loc:/nrf51_sdk/nrf51822/Include/app_common}" "${workspace_loc:/nrf51_sdk/nrf51822/Include/gcc}" "${workspace_loc:/nrf51_sdk/nrf51822/Include}"

    I placed the sdk in the workspace under folder nrf51_sdk as you can see in my paths setting

    After the include paths are set. You need to set the linker include path & script

    Click on General in Cross ARM C Linker. Then add the linker script. Then click on Library. You will find place to add include path for the linker.

Related