BUILD NS image on NRF9151.

I just got a NRF9151 dev kit and I want to build the image as non-secure, using: nrf9151dk/nrf9151/ns. The build is failing with error: 

C:/ncs/v3.1.0/nrf/modules/trusted-firmware-m/tfm_boards/partition/flash_layout.h:28:34: error: 'PM_TFM_NONSECURE_SIZE' undeclared here (not in a function)
28 | #define FLASH_NS_PARTITION_SIZE (PM_TFM_NONSECURE_SIZE)
| ^~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.0/nrf/modules/trusted-firmware-m/tfm_boards/partition/region_defs.h:99:29: note: in expansion of macro 'FLASH_NS_PARTITION_SIZE'
99 | #define NS_PARTITION_SIZE (FLASH_NS_PARTITION_SIZE)
| ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/target_cfg.c:65:9: note: in expansion of macro 'NS_PARTITION_SIZE'
65 | NS_PARTITION_SIZE - 1,

Any suggestions? 

Parents Reply Children
No Data
Related