Skip to content

Commit 7a76a62

Browse files
nordicjmcfriedt
authored andcommitted
sysbuild: Default to swap using offset for MCUboot
This swapping method is more efficient than swap using move and has been available for some time, remove experimental flag and set it as the default except for stm32 devices which have partition alignment for swap using move Signed-off-by: Jamie McCrae <[email protected]>
1 parent b45bc03 commit 7a76a62

File tree

1 file changed

+3
-2
lines changed
  • share/sysbuild/images/bootloader

1 file changed

+3
-2
lines changed

share/sysbuild/images/bootloader/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ if BOOTLOADER_MCUBOOT
3232

3333
choice MCUBOOT_MODE
3434
prompt "Mode of operation"
35-
default MCUBOOT_MODE_SWAP_USING_MOVE
35+
# Should be removed if board dts is updated
36+
default MCUBOOT_MODE_SWAP_USING_MOVE if SOC_FAMILY_STM32
37+
default MCUBOOT_MODE_SWAP_USING_OFFSET
3638
help
3739
The operating mode of MCUboot (which will also be propagated to the application).
3840

@@ -45,7 +47,6 @@ config MCUBOOT_MODE_SINGLE_APP
4547

4648
config MCUBOOT_MODE_SWAP_USING_OFFSET
4749
bool "Swap using offset"
48-
select EXPERIMENTAL
4950
help
5051
MCUboot expects slot0_partition and slot1_partition to be present in DT and application
5152
will boot from slot0_partition. MCUBOOT_BOOTLOADER_NO_DOWNGRADE should also be selected

0 commit comments

Comments
 (0)