- NRFConnect SDK 1.8.0
- arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.07) 10.3.1 20210621 (release)
- Ubuntu 20.04
When copying the sample nrf/samples/nrf9160/memfault and running the build command west build -b thingy91_nrf9160 -p I first get the error that the firmware has to be build as non-secure as described in the documentation. After enabling/setting the KConfig options
- CONFIG_TRUSTED_EXECUTION_NONSECURE
- CONFIG_MEMFAULT_NCS_PROJECT_KEY
- CONFIG_MEMFAULT_NCS_DEVICE_ID
- CONFIG_MEMFAULT_NCS_FW_TYPE
the code compiles spm_subimage and mcuboot_subimage but then fails in the next step (main app image I presume) with static assertions:NRFConnectSDK/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:82:26: error: 'NRF_CRYPTOCELL' undeclared here (not in a function); did you mean 'NRF_CRYPTOCELL_S'? 82 | CHECK_DT_REG(cryptocell, NRF_CRYPTOCELL);
and a few other checks in this file.
Commenting out all these checks in validate_base_addresses.c lets the build run through and the final hex is generated. The full compiler error output is attached.

