As title, I try to implement simultaneous dfu without external flash on 5340, but it always show that 'PM_MCUBOOT_PRIMARY_1_ID' undeclared.
if use external flash, my project can work well. when i disabled QSPI and add pm_static.yml as below, the project compilation reported the error.
so how to implement simultaneous dfu on 5340 ncs2.4 without external flash.
【pm_static.yml】
app:
address: 0xc200
region: flash_primary
size: 0x5AE00
mcuboot:
address: 0x0
region: flash_primary
size: 0xc000
mcuboot_pad:
address: 0xc000
region: flash_primary
size: 0x200
mcuboot_primary:
address: 0xc000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
size: 0x5B000
span: *id001
mcuboot_primary_app:
address: 0xc200
orig_span: &id002
- app
region: flash_primary
size: 0x5AE00
span: *id002
mcuboot_secondary:
address: 0x67000
size: 0x5B000
region: flash_primary
mcuboot_primary_1:
address: 0x0
size: 0x3a000
device: nordic_ram_flash_controller
region: ram_flash
ram_flash_empty:
address: 0x3a000
size: 0x6000
device: nordic_ram_flash_controller
region: ram_flash
mcuboot_secondary_1:
address: 0xC2000
size: 0x3a000
region: flash_primary
settings_storage:
address: 0xfc000
region: flash_primary
size: 0x4000
[mcuboot.conf]
# Enable flash simulator
CONFIG_FLASH=y
CONFIG_FPROTECT=y
CONFIG_PCD_APP=y
CONFIG_FLASH_SIMULATOR=y
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
CONFIG_FLASH_SIMULATOR_STATS=n
CONFIG_MAIN_STACK_SIZE=10240
CONFIG_BOOT_MAX_IMG_SECTORS=256
CONFIG_NRF53_MULTI_IMAGE_UPDATE=y
CONFIG_UPDATEABLE_IMAGE_NUMBER=2
CONFIG_BOOT_UPGRADE_ONLY=y
CONFIG_BOOT_IMAGE_ACCESS_HOOK_NRF5340=y
CONFIG_BOOT_IMAGE_ACCESS_HOOKS=y