Skip to content

Commit f7842c7

Browse files
committed
boards: stm32h750b-dk: add memory partitions for mcuboot
Add memory partitions for mcuboot and storage Signed-off-by: Abderrahmane JARMOUNI <[email protected]>
1 parent e416496 commit f7842c7

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

boards/st/stm32h750b_dk/stm32h750b_dk.dts

+29-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,flash = &flash0;
2222
zephyr,flash-controller = &mt25ql512ab1;
2323
zephyr,display = &ltdc;
24+
zephyr,code-partition = &slot0_partition;
2425
};
2526

2627
sdram2: sdram@d0000000 {
@@ -78,6 +79,19 @@
7879
status = "okay";
7980
};
8081

82+
&flash0 {
83+
partitions {
84+
compatible = "fixed-partitions";
85+
#address-cells = <1>;
86+
#size-cells = <1>;
87+
/* Flash has 128KB sector size */
88+
boot_partition: partition@0 {
89+
label = "mcuboot";
90+
reg = <0x00000000 DT_SIZE_K(128)>;
91+
};
92+
};
93+
};
94+
8195
&ltdc {
8296
pinctrl-0 = <&ltdc_r0_pi15 &ltdc_r1_pj0 &ltdc_r2_pj1 &ltdc_r3_ph9
8397
&ltdc_r4_pj3 &ltdc_r5_pj4 &ltdc_r6_pj5 &ltdc_r7_pj6
@@ -165,6 +179,8 @@
165179
dual-flash;
166180
status = "okay";
167181

182+
/* Sector erase 64KB uniform granularity */
183+
/* Subsector erase 4KB, 32KB granularity */
168184
mt25ql512ab1: qspi-nor-flash-1@90000000 {
169185
compatible = "st,stm32-qspi-nor";
170186
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
@@ -178,8 +194,19 @@
178194
#address-cells = <1>;
179195
#size-cells = <1>;
180196

181-
partition@0 {
182-
reg = <0x0 DT_SIZE_M(64)>;
197+
slot0_partition: partition@0 {
198+
label = "image-0";
199+
reg = <0x00000000 DT_SIZE_K(2048)>;
200+
};
201+
202+
slot1_partition: partition@200000 {
203+
label = "image-1";
204+
reg = <0x00200000 DT_SIZE_K(2048)>;
205+
};
206+
207+
storage_partition: partition@400000 {
208+
label = "storage";
209+
reg = <0x00400000 DT_SIZE_K(128)>;
183210
};
184211
};
185212
};

0 commit comments

Comments
 (0)