Replies: 2 comments 7 replies
-
Cc @nordicjm |
Beta Was this translation helpful? Give feedback.
0 replies
-
Was answered on discord:
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I’ve successfully set up MCUboot with two image slots (slot-0 and slot-1) using the default configuration:
My application acts like
smp_svr
— it writes the new image directly toslot-1
. When I callboot_request_upgrade()
and then perform a power cycle, the swap process completes as expected, and the new image from slot-1 boots successfully.However, for testing purposes, I manually corrupted the first few bytes of the slot-1 image before rebooting. When I reboot the device, the bootloader hangs at this point:
Only after manually resetting the device again does the bootloader finally revert back to the image in
slot-0
.Is there any MCUboot configuration option that allows the bootloader to immediately detect image corruption (whether in the magic header, the app body, or elsewhere) and revert to the previous valid image within the same boot cycle — instead of hanging or requiring a second reboot for recovery?
Thanks for help!
Beta Was this translation helpful? Give feedback.
All reactions