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 <martin@libre.solar>
This commit is contained in:
Martin Jäger 2024-01-15 18:27:38 +01:00 committed by Carles Cufí
parent 3135a4cd0b
commit 8a3ba22f79

View file

@ -20,7 +20,7 @@
zephyr,shell-uart = &lpuart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &flash0;
zephyr,code-partition = &slot0_partition;
};
leds: leds {
@ -191,6 +191,20 @@ stm32_lp_tick_source: &lptim1 {
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(32)>;
read-only;
};
slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00008000 DT_SIZE_K(104)>;
};
slot1_partition: partition@22000 {
label = "image-1";
reg = <0x00022000 DT_SIZE_K(104)>;
};
/*
* Set 16kB of storage (8x2kB pages) at the end of the 256kB of
* flash.