Seems that building Zephyr version of MCUboot with CONFIG_BOOT_SWAP_USING_SCRATCH does not work.
I have tried to build it for nrf52840dk_nrf52840 with overlay:
and uploaded binary does nothing.
Added CONFIG_MCUBOOT_LOG_LEVEL_DBG_INF but MCUboot prints nothing, just looks like not doing anything.
When engaged debugger then there is output visible on screen and it seems that MCUboot can not find bootable image, even though the same image used for testing it boots fine when using move algorithm.
I have found out that actually sole addition of the overlay breaks scratch, for example:
west build -d voot_move_no_dts -b nrf52840dk_nrf52840 bootloader/mcuboot/boot/zephyr/ -DCONFIG_MCUBOOT_LOG_LEVEL_DBG=y -DCONFIG_BOOT_SWAP_USING_MOVE=y
will build MCUboot that is able to boot some image, and prints info to console
while
west build -d voot_move -b nrf52840dk_nrf52840 bootloader/mcuboot/boot/zephyr/ -DCONFIG_MCUBOOT_LOG_LEVEL_DBG=y -DDTC_OVERLAY_FILE=$PWD/nrf52840dk_nrf52840_scratch.overlay -DCONFIG_BOOT_SWAP_USING_MOVE=y
where overlay is the one listed above, is broken.
This problem appears at list till 1.10.0 and is present at 61898dad92b8d9c29409a07e2f4dae9553145ccf
Seems that building Zephyr version of MCUboot with CONFIG_BOOT_SWAP_USING_SCRATCH does not work. I have tried to build it for nrf52840dk_nrf52840 with overlay:
and uploaded binary does nothing. Added
CONFIG_MCUBOOT_LOG_LEVEL_DBG_INF
but MCUboot prints nothing, just looks like not doing anything. When engaged debugger then there is output visible on screen and it seems that MCUboot can not find bootable image, even though the same image used for testing it boots fine when using move algorithm.I have found out that actually sole addition of the overlay breaks scratch, for example:
will build MCUboot that is able to boot some image, and prints info to console while
where overlay is the one listed above, is broken.
This problem appears at list till 1.10.0 and is present at 61898dad92b8d9c29409a07e2f4dae9553145ccf