Skip to content

Commit 8a3ba22

Browse files
martinjaegercarlescufi
authored andcommitted
boards: arm: nucleo_wl55jc: add flash partitions
Add flash partitions required to use the board with MCUboot. Also fix the chosen zephyr,code-partition devicetree node and point it to slot0_partition. Signed-off-by: Martin Jäger <[email protected]>
1 parent 3135a4c commit 8a3ba22

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
zephyr,shell-uart = &lpuart1;
2121
zephyr,sram = &sram0;
2222
zephyr,flash = &flash0;
23-
zephyr,code-partition = &flash0;
23+
zephyr,code-partition = &slot0_partition;
2424
};
2525

2626
leds: leds {
@@ -191,6 +191,20 @@ stm32_lp_tick_source: &lptim1 {
191191
#address-cells = <1>;
192192
#size-cells = <1>;
193193

194+
boot_partition: partition@0 {
195+
label = "mcuboot";
196+
reg = <0x00000000 DT_SIZE_K(32)>;
197+
read-only;
198+
};
199+
slot0_partition: partition@8000 {
200+
label = "image-0";
201+
reg = <0x00008000 DT_SIZE_K(104)>;
202+
};
203+
slot1_partition: partition@22000 {
204+
label = "image-1";
205+
reg = <0x00022000 DT_SIZE_K(104)>;
206+
};
207+
194208
/*
195209
* Set 16kB of storage (8x2kB pages) at the end of the 256kB of
196210
* flash.

0 commit comments

Comments
 (0)