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

Unable to build my light switch example

I am using nrf52832 DK and am unable to build my light switch example. It throws an error that some files are not included. In the screenshot, you could see the error. I have the path mentioned in the user include directory. I think i am missing something else. I read somewhere that i have to specify the for my nrf5_SDK_15.0.0. could that be an issue? And it's not just the case with light switch example. I am unable to build any example from nrf sdk fro mesh. I think something is wrong with my settings. 

Parents
  • You have most likely not included boards.h in the user include directories in the preprocessor tab of the Segger Project (go to Edit Options -> switch from Debug to Common Configuration, go to Preprocessor tab -> double click on User Include Directories & make sure the header file path is added there.

    Also, have you downloaded SDK 15 & made sure that it is located like shown in the documentation here? My guess is you have not done this & therefore the boards.h file cannot be found. It is a good idea to check the infocenter documentation when something does not build.

Reply
  • You have most likely not included boards.h in the user include directories in the preprocessor tab of the Segger Project (go to Edit Options -> switch from Debug to Common Configuration, go to Preprocessor tab -> double click on User Include Directories & make sure the header file path is added there.

    Also, have you downloaded SDK 15 & made sure that it is located like shown in the documentation here? My guess is you have not done this & therefore the boards.h file cannot be found. It is a good idea to check the infocenter documentation when something does not build.

Children
Related