Skip to content

Commit da920b1

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 8876458 commit da920b1

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

boards/st/stm32h573i_dk/board.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
# keep first
4-
if(CONFIG_STM32_MEMMAP)
5-
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
6-
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
7-
else()
84
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
5+
if(CONFIG_STM32_MEMMAP OR (CONFIG_XIP AND CONFIG_BOOTLOADER_MCUBOOT))
6+
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
97
endif()
108

119
board_runner_args(pyocd "--target=stm32h573iikx")

boards/st/stm32h573i_dk/stm32h573i_dk.dts

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -307,21 +307,6 @@
307307
reg = <0x00000000 DT_SIZE_K(64)>;
308308
};
309309

310-
slot0_partition: partition@10000 {
311-
label = "image-0";
312-
reg = <0x00010000 DT_SIZE_K(416)>;
313-
};
314-
315-
slot1_partition: partition@78000 {
316-
label = "image-1";
317-
reg = <0x00078000 DT_SIZE_K(416)>;
318-
};
319-
320-
scratch_partition: partition@e0000 {
321-
label = "image-scratch";
322-
reg = <0x000e0000 DT_SIZE_K(64)>;
323-
};
324-
325310
/* Set 64KB of storage at the end of Bank1 */
326311
storage_partition: partition@f0000 {
327312
label = "storage";
@@ -406,9 +391,19 @@
406391
#address-cells = <1>;
407392
#size-cells = <1>;
408393

409-
partition@0 {
410-
label = "nor";
411-
reg = <0x00000000 DT_SIZE_M(64)>;
394+
slot0_partition: partition@0 {
395+
label = "image-0";
396+
reg = <0x00000000 DT_SIZE_M(16)>;
397+
};
398+
399+
slot1_partition: partition@1000000 {
400+
label = "image-1";
401+
reg = <0x01000000 DT_SIZE_M(16)>;
402+
};
403+
404+
scratch_partition: partition@2000000 {
405+
label = "image-scratch";
406+
reg = <0x02000000 DT_SIZE_M(24)>;
412407
};
413408
};
414409
};

boards/st/stm32h573i_dk/stm32h573i_dk.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ supported:
2424
- spi
2525
- octospi
2626
- can
27-
- usb_device
2827
- i2c
2928
- rtc
3029
- usbd

0 commit comments

Comments
 (0)