Skip to content

Mcuboot Corruption Fallback #88851

Closed Answered by ofirshe
ofirshe asked this question in Q&A
Apr 21, 2025 · 2 comments · 13 replies
Discussion options

You must be logged in to vote

I identified the root cause: the bootloader isn’t actually hanging. In the version Zephyr currently points to, MCUboot detects that the image in the secondary slot is invalid. However, before printing the message
"mcuboot: Image in the secondary slot is not valid!", it first erases the entire secondary slot. This erasure process takes time, which gives the false impression that the bootloader is unresponsive.

In the latest upstream Zephyr, there’s an available option: MCUBOOT_MINIMAL_SCRAMBLE. Enabling this significantly reduces the delay by minimizing or skipping the full erase operation, allowing MCUboot to fall back to the primary slot much faster.

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
13 replies
@ofirshe
Comment options

@butok
Comment options

butok Apr 28, 2025
Collaborator

@ofirshe
Comment options

@ofirshe
Comment options

Answer selected by ofirshe
@butok
Comment options

butok May 2, 2025
Collaborator

@ofirshe
Comment options

@nordicjm
Comment options

nordicjm May 8, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment