From 6b84d29c0c5a1c5fb5d1ad48b95f9f5b3cab22e9 Mon Sep 17 00:00:00 2001 From: Andrej Butok Date: Fri, 15 Dec 2023 14:17:41 +0100 Subject: [PATCH] cmake: mcuboot: set align to 1 for overwrite only mode Set align to 1 for CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY, used by non-swap update modes. Fix imgtool error message for device with write size > 32B. Signed-off-by: Andrej Butok --- cmake/mcuboot.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/mcuboot.cmake b/cmake/mcuboot.cmake index 2347ae3108c..6dd0717f515 100644 --- a/cmake/mcuboot.cmake +++ b/cmake/mcuboot.cmake @@ -98,7 +98,7 @@ function(zephyr_mcuboot_tasks) # Use overwrite-only instead of swap upgrades. if(CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY) - set(imgtool_extra --overwrite-only ${imgtool_extra}) + set(imgtool_extra --overwrite-only --align 1 ${imgtool_extra}) endif() set(imgtool_args -- ${imgtool_extra})