Skip to content

Upgrade from secondary slot if primary slot is corrupted #1997

Discussion options

You must be logged in to vote

Defining MCUBOOT_OVERWRITE_ONLY_KEEP_BACKUP in mcuboot_config.h (or wherever you want I guess) prevents overwriting the first sector of the secondary slot on upgrade and thus allows for repeatedly upgrading from the secondary slot as needed.
It could be useful for this macro to be documented.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dillonj-sentient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant