Hello there!
I'm trying to enable secure boot via CONFIG_SECURE_BOOT and am currently getting the following error:
In file included from /../nrf/samples/bootloader/src/main.c:13: /../nrf/include/bl_storage.h: In function 'read_implementation_id_from_otp': /../nrf/include/bl_storage.h:77:63: error: 'PM_PROVISION_ADDRESS' undeclared (first use in this function) 77 | #define BL_STORAGE ((const volatile struct bl_storage_data *)(PM_PROVISION_ADDRESS)) | ^~~~~~~~~~~~~~~~~~~~ /../nrf/include/bl_storage.h:223:38: note: in expansion of macro 'BL_STORAGE' 223 | otp_copy32(buf, (uint32_t *)&BL_STORAGE->implementation_id, | ^~~~~~~~~~ /../nrf/include/bl_storage.h:77:63: note: each undeclared identifier is reported only once for each function it appears in 77 | #define BL_STORAGE ((const volatile struct bl_storage_data *)(PM_PROVISION_ADDRESS)) | ^~~~~~~~~~~~~~~~~~~~ /../nrf/include/bl_storage.h:223:38: note: in expansion of macro 'BL_STORAGE' 223 | otp_copy32(buf, (uint32_t *)&BL_STORAGE->implementation_id, | ^~~~~~~~~~ /../nrf/include/bl_storage.h: In function 'read_life_cycle_state': /../nrf/include/bl_storage.h:77:63: error: 'PM_PROVISION_ADDRESS' undeclared (first use in this function) 77 | #define BL_STORAGE ((const volatile struct bl_storage_data *)(PM_PROVISION_ADDRESS)) | ^~~~~~~~~~~~~~~~~~~~ /../nrf/include/bl_storage.h:256:29: note: in expansion of macro 'BL_STORAGE' 256 | (uint32_t) &BL_STORAGE->lcs.provisioning); | ^~~~~~~~~~ /../nrf/include/bl_storage.h: In function 'update_life_cycle_state': /../nrf/include/bl_storage.h:77:63: error: 'PM_PROVISION_ADDRESS' undeclared (first use in this function) 77 | #define BL_STORAGE ((const volatile struct bl_storage_data *)(PM_PROVISION_ADDRESS)) | ^~~~~~~~~~~~~~~~~~~~ /../nrf/include/bl_storage.h:321:53: note: in expansion of macro 'BL_STORAGE' 321 | nrfx_nvmc_halfword_write((uint32_t)&BL_STORAGE->lcs.provisioning, STATE_ENTERED); | ^~~~~~~~~~ /../nrf/samples/bootloader/src/main.c: At top level: /../nrf/samples/bootloader/src/main.c:14:10: fatal error: bl_boot.h: No such file or directory 14 | #include <bl_boot.h>
I'm using zephyr via sdk-nrf v2.6.1
Searching the sdk-nrf repo on github for `PM_PROVISION_ADDRESS` yields few results of interest. I did manage to find this commit which removes the definition at some point, but couldn't figure out the issue past this.
Thank you very much for your time,
Take care,
V