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

Compiling github projects

Hi,

After downloading any of the projects from nordic github, how does one compile the project successfully? Where should i extract the files to and what paths should i include? I have not been able to get a single project working, any help with this issue would be a massive help,

Thanks!

Parents
  • Hi

    The github examples are meant to be used with the ".zip version" of the SDK, not the Pack version. image description

    Using the Packs makes it easy to setup examples included in the Pack, but once you want to do something else it suddenly gets complicated. Therefore we generally recommend using the ".zip version". Your example files should (in most cases) be extracted to "[SDK]/examples/ble_peripheral". For example, if I am to try the PWM Library example I will extract it so that the main.c file ends up at

    "[my_SDK_folder]\examples\ble_peripheral\nrf51-pwm-library-master\main.c"
    

    In our SDK all examples demonstrating the nRF51 as a peripheral is placed in the "ble_peripheral" folder. All examples demonstrating the nRF51 as a central is placed in the "ble_central", etc. You are not, however, required to use these folders. You can, e.g. make a folder structure like

    "[my_SDK_folder]\examples\your_example_folder\nrf51-pwm-library-master\main.c". 
    

    The important thing is the number of "folder layers" down to the main SDK folder so that the compiler knows where to find other drivers and components.

  • I have extracted the files as instructed to Local Disk (C:)\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Examples\8.00\ble_peripheral and it still will not compile stating "no source"/"no such file or directory". Is this not the correct path?

Reply Children
No Data
Related