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

Non-Volatile Storage (NVS) building issue

Hi,

I'm using the latest master branch of nRF Connect SDK and I'm having problems with building my project after the commits of the past few days. I went to check what have been changed in NVS and then imported the changes to my own project. Then I tried the NVS sample from Zephyr (zephyr/samples/subsys/nvs) and building that sample failed too. Here is the error logs:

Building ‘app/libapp.a’ from solution ‘build’ in configuration ‘Common’
1> Compiling ‘main.c’
1> In file included from D:/NordicSemiconductor/ncs/zephyr/include/sched_priq.h:9,
1> from D:/NordicSemiconductor/ncs/zephyr/include/kernel_includes.h:23,
1> from D:/NordicSemiconductor/ncs/zephyr/include/kernel.h:17,
1> from D:/NordicSemiconductor/ncs/zephyr/include/zephyr.h:18,
1> from ../src/main.c:41:
1> D:/NordicSemiconductor/ncs/zephyr/include/storage/flash_map.h:235:11: error: 'PM_PM_PM_storage_ID_LABEL_OFFSET' undeclared (first use in this function)
1> D:/NordicSemiconductor/ncs/zephyr/include/sys/util.h:510:36: note: in definition of macro 'UTIL_PRIMITIVE_CAT'
1> D:/NordicSemiconductor/ncs/zephyr/include/storage/flash_map.h:235:2: note: in expansion of macro 'UTIL_CAT'
1> ../src/main.c:77:14: note: in expansion of macro 'FLASH_AREA_OFFSET'
1> D:/NordicSemiconductor/ncs/zephyr/include/storage/flash_map.h:235:11: note: each undeclared identifier is reported only once for each function it appears in
1> D:/NordicSemiconductor/ncs/zephyr/include/sys/util.h:510:36: note: in definition of macro 'UTIL_PRIMITIVE_CAT'
1> D:/NordicSemiconductor/ncs/zephyr/include/storage/flash_map.h:235:2: note: in expansion of macro 'UTIL_CAT'
1> ../src/main.c:77:14: note: in expansion of macro 'FLASH_AREA_OFFSET'
Build failed

Could anyone help me out of this?

Regards,
Tero

Related