This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem buiding the tutorial "A beginner's tutorial: Advertising"

I am trying to build the project which I downloaded from github for the "A beginner's tutorial: Advertising" but I get errors for missing files when I try to build it both in Keil and Segger IDEs.

I know that this tutorial was written for nRF51 and SDK 11. However, I was hoping to be able to run it with nRF52 and the newest SDK which is Ver14.1. Am I wrong about that?

I used "Download Zip" button with github.com/.../nrf51-ble-tutorial-advertising.git.

Then I copied the whole folder here: C:\Users\Owner\Desktop\nRF_SDKs\examples\ble_peripheral\nrf5-ble-tutorial-advertising which does include the main.c file.

I tried building from main.c as well as C:\Users\Owner\Desktop\nRF_SDKs\examples\ble_peripheral\nrf5-ble-tutorial-advertising\pca10040\s132\arm5_no_packs as I am trying to use S132 softdevice but both failed.

Any help would be appreciated. BTW, I am able to build the SDK built-in examples.

  • Hi,

    This tutorial was written for older versions of the SDK. If you try to run it with the newer SDK versions, it will not work. Some function names have changed and even some library names have changed in the newer versions. That is why you are getting the errors for missing files.

    If you want something similar, I would recommend you to look at \examples\ble_peripheral\ble_app_blinky

    It is a very simple BLE application. You can read the tutorial and compare it to this example. You will see some of the things have changed over the years.

    Good luck!

  • Thanks Superpak. I couldn't find \examples\ble_peripheral\ble_app_blinky in SDK14 but I found examples\ble_peripheral\ble_app_beacon\ble_app_blinky. There I found \pca10040\s132\arm5_no_packs\ble_app_blinky_pca10040_s132.uvprojx and tried to build that but I failed again. It only complains that boards.c is missing but I can see that other files are missing as well.

    I did manage to instead build

    \examples\ble_peripheral\ble_app_beacon\pca10040\s132\arm5_no_packs\ble_app_beacon_pca10040_s132.uvprojx
    

    but I don't think it's similar to the tutorial I was following. I'm saying this because for example, it does not advertise the device name or RSSI.

  • Copy the folder ble_app_blinky to examples\ble_peripheral\ and it should work.

  • perfect! worked. Thanks so much!

  • You can mark the answer as accepted if it worked! Thanks :)

Related