Zephyr NVS sample failed to build for nrf9160dk_nrf9160ns

Hi,

I'm trying to build the Zephyr NVS sample in SDK 1.6.0 and SDK 1.7.0 for nrf9160dk_nrf9160ns (Non-Secure) and build operation is failing with errors.

../src/main.c: In function 'main':
C:/Users/userName/git/nRF9160/v1.6.0/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)
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/toolchain/common.h:124:26:note:in definition of macro '_DO_CONCAT'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:80:31:note:in expansion of macro '_CONCAT'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:257:37:note:in expansion of macro 'DEVICE_NAME_GET'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:271:34:note:in expansion of macro 'DEVICE_DT_NAME_GET'
../src/main.c:81:14:note:in expansion of macro 'DEVICE_DT_GET'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:80:39:note:each undeclared identifier is reported only once for each function it appears in
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/toolchain/common.h:124:26:note:in definition of macro '_DO_CONCAT'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:80:31:note:in expansion of macro '_CONCAT'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:257:37:note:in expansion of macro 'DEVICE_NAME_GET'
C:/Users/userName/git/nRF9160/v1.6.0/zephyr/include/device.h:271:34:note:in expansion of macro 'DEVICE_DT_NAME_GET'
../src/main.c:81:14:note:in expansion of macro 'DEVICE_DT_GET'
Build failed

When I'm selecting the nrf9160dk_nrf9160 (without non-secure) the project is building without any changes in any file.

Related