Hi!
I’m currently setting up multi-image DFU on the nRF5340 using external flash.
By following the official documentation and samples, I managed to get it working correctly for the app core. However, just before the swap starts for the net core, I hit an assert after the call to the boot_read_image_size function in the boot_swap_image function within the loader.c file of MCUboot.
After adding some logs, I noticed that MCUboot either fails to read the mcuboot_primary_1 partition or the partition is completely empty.
I’ve read in some samples that multi-image updates do not support image swapping yet, but is that still the case with version 3.0.0?
Because it seems strange that with the hook boot_read_image_header_hook(...) in nrf53_hooks.c, it would actually be possible to read the mcuboot_primary_1 partition from within MCUboot.
For reference, I’m using the following sysbuild configuration:
SB_CONFIG_BOOTLOADER_MCUBOOT=y SB_CONFIG_PARTITION_MANAGER=y SB_CONFIG_BOOT_SIGNATURE_TYPE_ED25519=y SB_CONFIG_BOOT_SIGNATURE_KEY_FILE="..." SB_CONFIG_NETCORE_IPC_RADIO=y SB_CONFIG_NETCORE_IPC_RADIO_BT_HCI_IPC=y SB_CONFIG_SECURE_BOOT_NETCORE=y SB_CONFIG_MCUBOOT_MODE_SWAP_WITHOUT_SCRATCH=y SB_CONFIG_NETCORE_APP_UPDATE=y SB_CONFIG_MCUBOOT_UPDATEABLE_IMAGES=2 SB_CONFIG_MCUBOOT_APP_SYNC_UPDATEABLE_IMAGES=y SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
Thanks in advance for any answers to my questions!
