Skip to content

Commit 4b2bea0

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 partition on the 64MBytes space of the external flash Use the STM32Cube programmer to flash with the corresponding external loader for XiP mode. Removing usb_device will avoid test feature for that board. Signed-off-by: Francois Ramu <[email protected]>
1 parent 9842072 commit 4b2bea0

File tree

2 files changed

+21
-27
lines changed

2 files changed

+21
-27
lines changed

boards/st/stm32h573i_dk/stm32h573i_dk.dts

+21-26
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
zephyr,shell-uart = &usart1;
2121
zephyr,sram = &sram1;
2222
zephyr,flash = &flash0;
23-
zephyr,code-partition = &slot0_partition;
2423
zephyr,canbus = &fdcan1;
24+
spi-flash0 = &mx25lm51245;
2525
};
2626

2727
leds {
@@ -192,23 +192,6 @@
192192
label = "mcuboot";
193193
reg = <0x00000000 DT_SIZE_K(64)>;
194194
};
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-
};
212195
};
213196
};
214197

@@ -284,14 +267,26 @@
284267
status = "okay";
285268

286269
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-
};
270+
compatible = "fixed-partitions";
271+
#address-cells = <1>;
272+
#size-cells = <1>;
273+
274+
slot0_partition: partition@0 {
275+
label = "image-0";
276+
reg = <0x00000000 DT_SIZE_M(16)>;
277+
};
278+
slot1_partition: partition@1000000 {
279+
label = "image-1";
280+
reg = <0x01000000 DT_SIZE_M(16)>;
281+
};
282+
scratch_partition: partition@2000000 {
283+
label = "image-scratch";
284+
reg = <0x02000000 DT_SIZE_M(16)>;
285+
};
286+
storage_partition: partition@3000000 {
287+
label = "storage";
288+
reg = <0x03000000 DT_SIZE_M(16)>;
289+
};
295290
};
296291
};
297292
};

boards/st/stm32h573i_dk/stm32h573i_dk.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ supported:
2121
- spi
2222
- octospi
2323
- can
24-
- usb_device
2524
- i2c
2625
- rtc
2726
- usbd

0 commit comments

Comments
 (0)