Commit 5d0306c7 authored by Francois Ramu's avatar Francois Ramu Committed by Alberto Escolar
Browse files

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: default avatarFrancois Ramu <francois.ramu@st.com>
parent 2345bc99
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

# keep first
if(CONFIG_STM32_MEMMAP)
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
if(CONFIG_STM32_MEMMAP OR (CONFIG_XIP AND CONFIG_BOOTLOADER_MCUBOOT))
  board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
else()
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
endif()

board_runner_args(pyocd "--target=stm32h573iikx")
+13 −18
Original line number Diff line number Diff line
@@ -307,21 +307,6 @@
			reg = <0x00000000 DT_SIZE_K(64)>;
		};

		slot0_partition: partition@10000 {
			label = "image-0";
			reg = <0x00010000 DT_SIZE_K(416)>;
		};

		slot1_partition: partition@78000 {
			label = "image-1";
			reg = <0x00078000 DT_SIZE_K(416)>;
		};

		scratch_partition: partition@e0000 {
			label = "image-scratch";
			reg = <0x000e0000 DT_SIZE_K(64)>;
		};

		/* Set 64KB of storage at the end of Bank1 */
		storage_partition: partition@f0000 {
			label = "storage";
@@ -406,9 +391,19 @@
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "nor";
				reg = <0x00000000 DT_SIZE_M(64)>;
			slot0_partition: partition@0 {
				label = "image-0";
				reg = <0x00000000 DT_SIZE_M(16)>;
			};

			slot1_partition: partition@1000000 {
				label = "image-1";
				reg = <0x01000000 DT_SIZE_M(16)>;
			};

			scratch_partition: partition@2000000 {
				label = "image-scratch";
				reg = <0x02000000 DT_SIZE_M(24)>;
			};
		};
	};
+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ supported:
  - spi
  - octospi
  - can
  - usb_device
  - i2c
  - rtc
  - usbd