Upgrade from secondary slot if primary slot is corrupted #1997
-
I am using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I've discovered that on an upgrade, the first 8k of the secondary slot is erased (8k is the sector size of my flash). |
Beta Was this translation helpful? Give feedback.
-
I found in function |
Beta Was this translation helpful? Give feedback.
-
Defining |
Beta Was this translation helpful? Give feedback.
Defining
MCUBOOT_OVERWRITE_ONLY_KEEP_BACKUP
inmcuboot_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.