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

Custom mcuboot build, 'PM_MCUBOOT_PRIMARY_ID' undeclared, trying to compile mcuboot

Hello,

I am trying edit and compile mcuboot and ultimately upload to the nrf9160.

To do so I am loading the mcuboot project using CmakeLists.txt at v1.2.0\bootloader\mcuboot\boot\zephyr and select my non secure custom board package.

After I hit build I get an error 'PM_MCUBOOT_PRIMARY_ID' undeclared (first use in this function); did you mean 'BOOT_PRIMARY_SLOT'? & 'PM_MCUBOOT_SECONDARY_ID' undeclared (first use in this function); did you mean 'BOOT_SECONDARY_SLOT'?

I am not sure where to define or what value to set to these macros. In some Kconfig file or pm.yml?

I understand that using correct configurations, these macros are supposed to be generated into <build_directory>\spm\zephyr\include\generated\pm_config.h, but as the compiler indicates there are not there.

I would appropriate some insight.  Thank you.

Related