From 3a10f90580964f1470dde067779ec70a23fe74f3 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Thu, 19 Oct 2023 09:34:43 +0200 Subject: [PATCH] boot: zephyr: boards config of the variant stm32 disco kit Define the stm32 disco board variant configuration to set the STM32 XIP mode that will enable the MemoryMapped mode. See Kconfig of the stm32 soc. Choose the mcu_boot partition where to build ../bootloader/mcuboot/boot/zephyr The zephyr, chosen zephyr,flash = &flash0; is in the board dts. The zephyr,code-partition = &boot_partition; is given by the app.overlay Signed-off-by: Francois Ramu --- .../boards/b_u585i_iot02a_stm32u585xx_ext_flash_app.conf | 1 + boot/zephyr/boards/stm32h750b_dk.conf | 4 ++++ .../boards/stm32h7b3i_dk_stm32h7b3xx_ext_flash_app.conf | 1 + 3 files changed, 6 insertions(+) create mode 100644 boot/zephyr/boards/b_u585i_iot02a_stm32u585xx_ext_flash_app.conf create mode 100644 boot/zephyr/boards/stm32h750b_dk.conf create mode 100644 boot/zephyr/boards/stm32h7b3i_dk_stm32h7b3xx_ext_flash_app.conf diff --git a/boot/zephyr/boards/b_u585i_iot02a_stm32u585xx_ext_flash_app.conf b/boot/zephyr/boards/b_u585i_iot02a_stm32u585xx_ext_flash_app.conf new file mode 100644 index 000000000..18dec9fcb --- /dev/null +++ b/boot/zephyr/boards/b_u585i_iot02a_stm32u585xx_ext_flash_app.conf @@ -0,0 +1 @@ +CONFIG_STM32_MEMMAP=y diff --git a/boot/zephyr/boards/stm32h750b_dk.conf b/boot/zephyr/boards/stm32h750b_dk.conf new file mode 100644 index 000000000..ba48f0ae9 --- /dev/null +++ b/boot/zephyr/boards/stm32h750b_dk.conf @@ -0,0 +1,4 @@ +CONFIG_STM32_MEMMAP=y + +CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n +CONFIG_BOOT_MAX_IMG_SECTORS=4096 diff --git a/boot/zephyr/boards/stm32h7b3i_dk_stm32h7b3xx_ext_flash_app.conf b/boot/zephyr/boards/stm32h7b3i_dk_stm32h7b3xx_ext_flash_app.conf new file mode 100644 index 000000000..18dec9fcb --- /dev/null +++ b/boot/zephyr/boards/stm32h7b3i_dk_stm32h7b3xx_ext_flash_app.conf @@ -0,0 +1 @@ +CONFIG_STM32_MEMMAP=y