Skip to content

Commit db24a8b

Browse files
martinjaegercarlescufi
authored andcommitted
boards: arm: lora_e5_dev_board: 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 8a3ba22 commit db24a8b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
zephyr,shell-uart = &usart1;
1818
zephyr,sram = &sram0;
1919
zephyr,flash = &flash0;
20-
zephyr,code-partition = &flash0;
20+
zephyr,code-partition = &slot0_partition;
2121
};
2222

2323
leds {
@@ -176,6 +176,19 @@ grove_i2c: &i2c2 {};
176176
#address-cells = <1>;
177177
#size-cells = <1>;
178178

179+
boot_partition: partition@0 {
180+
label = "mcuboot";
181+
reg = <0x00000000 DT_SIZE_K(32)>;
182+
read-only;
183+
};
184+
slot0_partition: partition@8000 {
185+
label = "image-0";
186+
reg = <0x00008000 DT_SIZE_K(104)>;
187+
};
188+
slot1_partition: partition@22000 {
189+
label = "image-1";
190+
reg = <0x00022000 DT_SIZE_K(104)>;
191+
};
179192
/* 16KB (8x2kB pages) of storage at the end of the flash */
180193
storage_partition: partition@3c000 {
181194
label = "storage";

0 commit comments

Comments
 (0)