Skip to content

Commit 33cffb2

Browse files
committed
boards: st: stm32h573i_dk: Add board variant for app in external flash
Restore old internal flash layout as default and make app in external flash a new board variant. Signed-off-by: Tim Pambor <[email protected]>
1 parent bcc4689 commit 33cffb2

8 files changed

+583
-401
lines changed

boards/st/stm32h573i_dk/Kconfig.defconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,21 @@ config I2C_STM32_V2_TIMING
3939

4040
endif # DISPLAY
4141

42+
if BOARD_STM32H573I_DK_STM32H573XX_EXT_FLASH_APP
43+
44+
if MCUBOOT
45+
46+
# A dependency of FLASH_STM32_QSPI & STM32_MEMMAP
47+
config FLASH
48+
default y
49+
50+
# So MCUboot can access ext Flash in memory-mapped mode
51+
# to read app slots, start the app, or copy it to RAM.
52+
config STM32_MEMMAP
53+
default y
54+
55+
endif # MCUBOOT
56+
57+
endif # BOARD_STM32H573I_DK_STM32H573XX_EXT_FLASH_APP
58+
4259
endif # BOARD_STM32H573I_DK
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
choice BOOTLOADER
5+
default BOOTLOADER_MCUBOOT
6+
endchoice
7+
8+
choice BOOT_SIGNATURE_TYPE
9+
default BOOT_SIGNATURE_TYPE_NONE
10+
endchoice
11+
12+
choice MCUBOOT_MODE
13+
default MCUBOOT_MODE_DIRECT_XIP
14+
endchoice

boards/st/stm32h573i_dk/board.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ board:
44
vendor: st
55
socs:
66
- name: stm32h573xx
7+
variants:
8+
- name: ext_flash_app

0 commit comments

Comments
 (0)