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

i can not open any file from nRF5 SDK folder nor can i build any example project from nrf sdk for mesh .

I am unable to build any example project of nrf sdk for mesh. I have added the SDK root in my global macros as : SDK_ROOT=C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a . And still i can not open any file from nRF5 SDK folder. is there any other specific format in which i have to add the path? or some other issue?

  • Segger Embedded Studio determines the location of the nRF5 SDK through macros. Before building the example, you must first configure the SDK_ROOT macro in Segger Embedded Studio. This is a one time global configuration that will still be valid the next time you open Segger Embedded Studio. The SDK_ROOT variable defaults to an nRF5 SDK 15.0.0 instance unzipped right next to the mesh folder if not set.

    The SDK_ROOT macro can be set by navigating to Tools -> Options, then "Building". Under "Build" in the configuration list, edit "Global macros" to contain SDK_ROOT=<the path to your nRF5 SDK 15 instance>. Save the configuration.

    The path can be verified by opening one of the source files under the "nRF5 SDK" file group. If the macro was set correctly, the file should open in the editor window. If not, it will show an error message telling you that the file couldn't be found.

    For more info on Segger Embedded Studio macros, see https://studio.segger.com/ide_project_macros.htm

  • Not certain you need to do this. I do not have SDK_ROOT in the Global macros. The error you receive is because you cannot find the boards.h header file. This header file is located under components/boards/. Right click on Project '....' , go the common configuration in the left top corner, click on preprocessor tab & double click on the "User Include Directories". There, you should have the line: ../../../../../../components/boards

    Can you double check that you can find the file & you can find the user include directories line?

  • The difference is that you have SDK ROOT, whereas I do not. I only have the line:

    ../../../../../../components/boards

    whereas you have the SDK_ROOT macro in front. In that case, you will need to add SDK_ROOT to the global macros & make sure it is defined correctly. It is weird that we do not have the same user include directory definitions as I do. I will ask another application engineer about this and get back to you.

  • Thank you so much for your support. I will wait for your response. By the time can you guide me a little on my project? i am trying to interface a simple DHT11 sensor with the nrf52832 kit to send the data in a mesh. I went through the light switch demo and have few doubts. Would i have to flash one board exclusively for provisoner so that it can provision and configure my client and server? And in order to send my DHT11 sesnor data instead of setting and getting led commands, do i only need to change the simpleOnOffModel file or there would be changes in application as well? I have seen many people trying to implement the same thing with their sensor data. Do you have any reference code snippet or a good code walk through of the light switch example. Any help would be really appreciated. We plan to buy the nordic kits in bulk once the prototype of this project is ready. 

Related