Skip to content

Commit 2597a93

Browse files
erwangocarlescufi
authored andcommitted
boards: nucleo_wb55cg: Set partition for swap f/w update method
Flash partition was defining a scratch area which was implying the use of mcuboot BOOT_SWAP_USING_SCRATCH f/w update method. By removing this partition, mcuboot will automatically use BOOT_PREFER_SWAP_MOVE method which should be prefered as it levels flash wear. Incidentally increase slot1 by one sector (as this is preferred for the swap method). Signed-off-by: Erwan Gouriou <[email protected]>
1 parent e1d2023 commit 2597a93

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

boards/st/nucleo_wba55cg/nucleo_wba55cg.dts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,19 +173,15 @@ stm32_lp_tick_source: &lptim1 {
173173
};
174174
slot0_partition: partition@10000 {
175175
label = "image-0";
176-
reg = <0x00010000 DT_SIZE_K(448)>;
176+
reg = <0x00010000 DT_SIZE_K(456)>;
177177
};
178-
slot1_partition: partition@80000 {
178+
slot1_partition: partition@82000 {
179179
label = "image-1";
180-
reg = <0x00080000 DT_SIZE_K(448)>;
180+
reg = <0x00082000 DT_SIZE_K(448)>;
181181
};
182-
scratch_partition: partition@f0000 {
183-
label = "image-scratch";
184-
reg = <0x000f0000 DT_SIZE_K(16)>;
185-
};
186-
storage_partition: partition@f4000 {
182+
storage_partition: partition@f2000 {
187183
label = "storage";
188-
reg = <0x000f4000 DT_SIZE_K(48)>;
184+
reg = <0x000f2000 DT_SIZE_K(56)>;
189185
};
190186
};
191187
};

0 commit comments

Comments
 (0)