From 4ef0771eaadb4442d654defefd02d0aa8d2cb4d0 Mon Sep 17 00:00:00 2001 From: David Leach Date: Fri, 8 Nov 2024 15:15:40 -0600 Subject: [PATCH] boards: nxp: mimxrt1050 align partitions to 256K Align the partitions to 256k for mcuboot to handle erase correctly. The datasheet for the S26KS512S claims erases may only be performed on 256 KB sectors. Signed-off-by: David Leach --- .../mimxrt1050_evk_mimxrt1052_hyperflash.overlay | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.overlay b/boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.overlay index cc31988f583ddc..4a3f79734b21bf 100644 --- a/boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.overlay +++ b/boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.overlay @@ -48,22 +48,22 @@ #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; - reg = <0x00000000 DT_SIZE_K(128)>; + reg = <0x00000000 DT_SIZE_M(1)>; }; /* The MCUBoot swap-move algorithm uses the last 11 sectors * of the primary slot0 for swap status and move. */ - slot0_partition: partition@20000 { + slot0_partition: partition@100000 { label = "image-0"; - reg = <0x00020000 (DT_SIZE_M(3) + DT_SIZE_K(44))>; + reg = <0x00100000 DT_SIZE_M(3)>; }; - slot1_partition: partition@32B000 { + slot1_partition: partition@400000 { label = "image-1"; - reg = <0x0032B000 DT_SIZE_M(3)>; + reg = <0x00400000 DT_SIZE_M(3)>; }; - storage_partition: partition@62B000 { + storage_partition: partition@700000 { label = "storage"; - reg = <0x0062B000 (DT_SIZE_M(58) - DT_SIZE_K(172))>; + reg = <0x00700000 DT_SIZE_M(58)>; }; }; };