Can't Build code that references files on Nordic NRF SDK version 17 on MACOS

213 views Asked by At

I am building code (in VS Code) for the NRF52840 Development Kit using the nordic nRF5_SDK-17.1.0. When I build the following example with the following dependancies:

#include <stdbool.h>
#include "nrf_delay.h"
#include "nrf_gpio.h"
#include "nrf_pwr_mgmt.h"
#include "ble.h"
#include "ble_advertising.h"

I get an error that it cannot find files in this SDK:

/Users/jaspal/development/BT-Nordic/hello_world4/src/main.c:2:10: fatal error: nrf_delay.h: No such file or directory
    2 | #include "nrf_delay.h"

I have added the path to my ~/.zshrc but it is still not finding these files. Help would be much appreciated!

0

There are 0 answers