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

How can I run the nrf52840 Bluetooth mesh example?

I have the module nrf52840

You are about to download the nrf5SDKforMeshv310src file to run the Bluetooth mesh example.

As I build, I get the following error. How do I fix it?

Parents
  • I would suggest that you take a look at the Building the mesh stack and examples

    Under "First time setup": 

    Before building the mesh examples with SEGGER Embedded Studio for the first time, you must complete a one-time setup of the SDK_ROOT macro in SEGGER Embedded Studio. This macro is used to find the nRF5 SDK files.

    You can either:

    • Use the default settings of the SDK_ROOT macro. It defaults to an nRF5 SDK 15.2.0 instance unzipped right next to the mesh folder.
    • Set the SDK_ROOT macro to a custom nRF5 SDK instance.

    To set the SDK_ROOT macro manually in SEGGER Embedded Studio:

    1. Go to Tools -> Options.
    2. Select Building.
    3. Under Build in the configuration list, edit Global macros to contain SDK_ROOT=<the path to nRF5 SDK instance>.
    4. Save the configuration.

    You can verify the path by opening one of the source files under the nRF5 SDK file group. If the macro is set correctly, the file opens in the editor window. If not, an error message is displayed with information that the file cannot be found.

    Regards, 
    Joakim

  • I don't understand

    "Under Build in the configuration list, edit Global macros to contain SDK_ROOT=<the path to nRF5 SDK instance>."

    I fixed "SDK_ROOT=<C:\Nordic_Semi\nRF5SDK153059ac345\nRF5_SDK_15.3.0_59ac345>" right??

  • If that is the path to your instance of the nRF5 SDK, then it's correct. 

    I would like to note that The nRF5 SDK for Mesh v.3.1.0 requires the nRF5 SDK 15.2.0 to compile. I haven't tried using nRF5 SDK v.15.3.0. 

Reply Children
Related