So this is what I understand right now.
I need to add a secondary image in pm_static.yml, file should look something like below.
I will write app_update.bin file in external flash partition “mcuboot_secondary” and when write is complete I need to reboot the device.
Is my understanding correct?
external_flash:
address: 0×0
end_address: 0×200000
region: external_flash
size: 0×200000
mcuboot_secondary:
address: 0×00000
device: mx25r16
end_address: 0xf4000
region: external_flash
size: 0xf4000
littlefs_storage:
address: 0×100000
device: mx25r16
region: external_flash
size: 0×200000