Skip to content

Commit ca8b3b2

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 Switch mcuboot to use swap mode and remove the no longer required scratch partitions from the internal and external flash layout. Introduce a 'soc-nv-flash' node in the stm32h573i_dk board DTS file to define the external flash memory parameters used for MCUBoot integration. This way BOOT_MAX_IMG_SECTORS_AUTO can be used to automatically calculate the maximum number of image sectors based on the actual external flash configuration. Signed-off-by: Tim Pambor <[email protected]>
1 parent d9ef80b commit ca8b3b2

8 files changed

+562
-407
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
if BOARD_STM32H573I_DK_STM32H573XX_EXT_FLASH_APP
13+
14+
choice MCUBOOT_MODE
15+
default MCUBOOT_MODE_SWAP_USING_OFFSET
16+
endchoice
17+
18+
endif # BOARD_STM32H573I_DK_STM32H573XX_EXT_FLASH_APP

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)