Skip to content

Commit f1a2050

Browse files
nvincent-vosslohcarlescufi
authored andcommitted
boards: define flash partitions for nucleo_h743zi
Defines partitions that can be used by mcuboot on nucleo_h743zi board. Please note that mcuboot is not yet supported on stm32 h7 family as the write-block-size is greater than 8. Signed-off-by: Nicolas VINCENT <[email protected]>
1 parent 0dc3153 commit f1a2050

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

boards/arm/nucleo_h743zi/nucleo_h743zi.dts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
zephyr,sram = &sram0;
2020
zephyr,flash = &flash0;
2121
zephyr,dtcm = &dtcm;
22+
zephyr,code-partition = &slot0_partition;
2223
};
2324

2425
leds {
@@ -116,3 +117,43 @@
116117
status = "okay";
117118
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
118119
};
120+
121+
&flash0 {
122+
partitions {
123+
compatible = "fixed-partitions";
124+
#address-cells = <1>;
125+
#size-cells = <1>;
126+
127+
/* 128KB for bootloader */
128+
boot_partition: partition@0 {
129+
label = "mcuboot";
130+
reg = <0x00000000 0x00020000>;
131+
read-only;
132+
};
133+
134+
/* storage: 128KB for settings */
135+
storage_partition: partition@20000 {
136+
label = "storage";
137+
reg = <0x00020000 0x00020000>;
138+
};
139+
140+
/* application image slot: 256KB */
141+
slot0_partition: partition@40000 {
142+
label = "image-0";
143+
reg = <0x00040000 0x00040000>;
144+
};
145+
146+
/* backup slot: 256KB */
147+
slot1_partition: partition@80000 {
148+
label = "image-1";
149+
reg = <0x00080000 0x00040000>;
150+
};
151+
152+
/* swap slot: 128KB */
153+
scratch_partition: partition@c0000 {
154+
label = "image-scratch";
155+
reg = <0x000c0000 0x00020000>;
156+
};
157+
158+
};
159+
};

0 commit comments

Comments
 (0)