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

No such file or directory when building light_switch examples.

I'm trying to build the light switch example. I have downloaded the nRF5 SDK for Mesh v4.0.0 and the nRF5 SDK v16.0.0, and place those 2 extracted folders in the same folder in my desktop. The problem is that whenever I try to build the files for either the light switch client or light switch server, in SEGGER Embedded Studio for ARM 5.10b,I get 8 errors as you can see in the screenshot.

Those errors say:

boards.h: No such file or directory

and the same "No such file or directory" message with ble.h, app_timer.h, nrf.h (twice), ble_gap.h, app_error.h and nrf_error.h.

I've seen many people having this problem and I have tried to solve it in many ways but it doesn't fix it. Does anyone know how to fix this problem?

Parents
  • Hi,

    Could you upload a screenshot of your folder structure?  The SDK_ROOT macro is by default set to an nRF5 SDK instance unzipped right next to the mesh folder. So it should work when both SDKs are in the same folder.

    An alternative is to change the SDK_ROOT macro, set it manually.

    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.
  • Hi,

    The problem is probably because of the name of the folder for SDK16. Try change it to nRF5_SDK_16.0.0_98a08e2.

    Carloss said:
    I don't see any SDK_ROOT folder. Is this what you mean by the path to the nRF5 instance?

    Yes but without the <> around the path.

Reply Children
Related