From 2d4946ed7e39ce2f5336810241a0eb8c205ceefb Mon Sep 17 00:00:00 2001 From: "F. Ramu" Date: Mon, 18 Nov 2024 17:03:29 +0100 Subject: [PATCH] boot: zephyr: boards config of the stm32h7s3l8 nucleo Define the stm32 nucleo board 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 Signed-off-by: F. Ramu --- boot/zephyr/boards/nucleo_h7s3l8.conf | 3 +++ boot/zephyr/boards/nucleo_h7s3l8.overlay | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 boot/zephyr/boards/nucleo_h7s3l8.conf create mode 100644 boot/zephyr/boards/nucleo_h7s3l8.overlay diff --git a/boot/zephyr/boards/nucleo_h7s3l8.conf b/boot/zephyr/boards/nucleo_h7s3l8.conf new file mode 100644 index 000000000..468f01659 --- /dev/null +++ b/boot/zephyr/boards/nucleo_h7s3l8.conf @@ -0,0 +1,3 @@ +CONFIG_BOOT_DIRECT_XIP=y +CONFIG_STM32_MEMMAP=y +CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n diff --git a/boot/zephyr/boards/nucleo_h7s3l8.overlay b/boot/zephyr/boards/nucleo_h7s3l8.overlay new file mode 100644 index 000000000..d374529d6 --- /dev/null +++ b/boot/zephyr/boards/nucleo_h7s3l8.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2024 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + zephyr,flash = &flash0; + zephyr,code-partition = &boot_partition; + }; +};