You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new variation of the swap using move mode, named swap using
offset, whereby instead of moving all the sectors in the primary
image, the sectors in the secondary image are offset instead. This
fastens image swapping time both for updates and reverts as each
sector in both slots is erased only once, which also reduces flash
wear, and uses less swap status bits to represent
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Copy file name to clipboardExpand all lines: boot/bootutil/src/bootutil_priv.h
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,11 +58,12 @@ struct flash_area;
58
58
59
59
#if (defined(MCUBOOT_OVERWRITE_ONLY) + \
60
60
defined(MCUBOOT_SWAP_USING_MOVE) + \
61
+
defined(MCUBOOT_SWAP_USING_OFFSET) + \
61
62
defined(MCUBOOT_DIRECT_XIP) + \
62
63
defined(MCUBOOT_RAM_LOAD) + \
63
64
defined(MCUBOOT_FIRMWARE_LOADER) + \
64
65
defined(MCUBOOT_SWAP_USING_SCRATCH)) >1
65
-
#error "Please enable only one of MCUBOOT_OVERWRITE_ONLY, MCUBOOT_SWAP_USING_MOVE, MCUBOOT_DIRECT_XIP, MCUBOOT_RAM_LOAD or MCUBOOT_FIRMWARE_LOADER"
66
+
#error "Please enable only one of MCUBOOT_OVERWRITE_ONLY, MCUBOOT_SWAP_USING_MOVE, MCUBOOT_SWAP_USING_OFFSET, MCUBOOT_DIRECT_XIP, MCUBOOT_RAM_LOAD or MCUBOOT_FIRMWARE_LOADER"
0 commit comments