Skip to content

Commit 0841f22

Browse files
committed
boards: arm: stm32h573 disco kit move partition to ext flash
Add the XSPI 2 which is an octoSPI connection to a octo NOR flash mx25lm51245 on the stm32h573i_dk disco kit Define the parition on the 64MBytes space of the external flash Use the STM32Cube programmer to flash with the corresponding external loader for XiP mode. Signed-off-by: Francois Ramu <[email protected]>
1 parent 1a8a2bc commit 0841f22

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

boards/st/stm32h573i_dk/stm32h573i_dk.dts

+21-26
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
zephyr,shell-uart = &usart1;
2121
zephyr,sram = &sram1;
2222
zephyr,flash = &flash0;
23-
zephyr,code-partition = &slot0_partition;
2423
zephyr,canbus = &fdcan1;
2524
};
2625

@@ -192,23 +191,6 @@
192191
label = "mcuboot";
193192
reg = <0x00000000 DT_SIZE_K(64)>;
194193
};
195-
slot0_partition: partition@10000 {
196-
label = "image-0";
197-
reg = <0x00010000 DT_SIZE_K(416)>;
198-
};
199-
slot1_partition: partition@78000 {
200-
label = "image-1";
201-
reg = <0x00078000 DT_SIZE_K(416)>;
202-
};
203-
scratch_partition: partition@e0000 {
204-
label = "image-scratch";
205-
reg = <0x000e0000 DT_SIZE_K(64)>;
206-
};
207-
/* Set 64KB of storage at the end of Bank1 */
208-
storage_partition: partition@f0000 {
209-
label = "storage";
210-
reg = <0x000f0000 DT_SIZE_K(64)>;
211-
};
212194
};
213195
};
214196

@@ -284,14 +266,27 @@
284266
status = "okay";
285267

286268
partitions {
287-
compatible = "fixed-partitions";
288-
#address-cells = <1>;
289-
#size-cells = <1>;
290-
291-
partition@0 {
292-
label = "nor";
293-
reg = <0x00000000 DT_SIZE_M(64)>;
294-
};
269+
compatible = "fixed-partitions";
270+
#address-cells = <1>;
271+
#size-cells = <1>;
272+
273+
slot0_partition: partition@0 {
274+
label = "image-0";
275+
reg = <0x00000000 DT_SIZE_M(16)>;
276+
};
277+
slot1_partition: partition@1000000 {
278+
label = "image-1";
279+
reg = <0x01000000 DT_SIZE_M(16)>;
280+
};
281+
scratch_partition: partition@2000000 {
282+
label = "image-scratch";
283+
reg = <0x02000000 DT_SIZE_M(16)>;
284+
};
285+
/* Set 64KB of storage at the end */
286+
storage_partition: partition@3000000 {
287+
label = "storage";
288+
reg = <0x03000000 DT_SIZE_M(16)>;
289+
};
295290
};
296291
};
297292
};

0 commit comments

Comments
 (0)