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

nrf9160 NVS sample compiler error

Hi.

My NCS version is 1.6.0. When trying to compile ./zephyr/samples/subsys/nvs for nrf9160_dk, I'm getting the following error:

/home/wsluser/NORDIC/nrf/zephyr/include/device.h:80:39: error: '__device_dts_ord_DT_COMPAT_fixed_partitions_LABEL_nvs_storage_PARENT_PARENT_ORD' undeclared (first use in this function)

<lots of macro expanison stuff>

../src/main.c:81:14: note: in expansion of macro 'DEVICE_DT_GET'
   81 |  flash_dev = DEVICE_DT_GET(FLASH_NODE);
      |              ^~~~~~~~~~~~~
[34/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /home/wsluser/NORDIC/nrf/zephyr/samples/subsys/nvs/build

Do I need to provide some custom overlay dts? Can't find anything about it in the docs.

Thank you.

Parents Reply Children
No Data
Related