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

How to use nrf51-ble-app-lbs in SDK v5.2

Hi,

I need to use nrf51-ble-app-lbs application example to add my customized applications. I have downloaded the project but I'm not able to compile it probably cause I'm using SDK v5.2. As suggested I'v placed the project folder in path : C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\s110. When i compile it, it throws following error : "Rebuild target 'nrf51822_xxaa_s110 (256K)' compiling system_nrf51.c... system_nrf51.c: Error: #5: cannot open source input file "........\components\toolchain\system_nrf51.c": No such file or directory Target not created"

Can anyone give me clue how to sort this issue out, or it's just not possible with SDK v5.2.

Also on git from when i downloaded application project i noticed, it was mentioned : "To compile it, clone the repository in the [SDK]/examples/ble_peripheral folder."

But I dont know where that directory is ?

Any suggestion would be much appreciated ?

Parents
  • Hi

    Make sure that you download the 5.2.0 branch if you are using SDK 5.2.0.

    image description

    Sometimes when you unzip the example after downloading it from Github, an additional folder level is created, making the references in the ble_app_lbs example not point to the correct files, because the project uses relative paths to find dependent files. If this is the case, you can try to unzip the project into the C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\ instead.

Reply
  • Hi

    Make sure that you download the 5.2.0 branch if you are using SDK 5.2.0.

    image description

    Sometimes when you unzip the example after downloading it from Github, an additional folder level is created, making the references in the ble_app_lbs example not point to the correct files, because the project uses relative paths to find dependent files. If this is the case, you can try to unzip the project into the C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\ instead.

Children
No Data
Related