From ea36480c8ad9f8c59118752d38e7c461040ec36c Mon Sep 17 00:00:00 2001 From: Abderrahmane JARMOUNI Date: Mon, 6 Oct 2025 00:59:49 +0200 Subject: [PATCH 1/2] boot: zephyr: boards: add stm32h750b_dk_stm32h750xx_ext_flash_app overlay Following the introduction of stm32h750b-dk 'ext_flash_app' board variant, for storing apps in external Flash and chainloading them with MCUboot that's placed in internal Flash, we need a DT overlay to designate internal Flash & controller as the chosen 'zephyr,flash' & 'zephyr,flash-controller' for the MCUboot Zephyr Application. Signed-off-by: Abderrahmane JARMOUNI --- .../boards/stm32h750b_dk_stm32h750xx_ext_flash_app.overlay | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 boot/zephyr/boards/stm32h750b_dk_stm32h750xx_ext_flash_app.overlay diff --git a/boot/zephyr/boards/stm32h750b_dk_stm32h750xx_ext_flash_app.overlay b/boot/zephyr/boards/stm32h750b_dk_stm32h750xx_ext_flash_app.overlay new file mode 100644 index 000000000..0d8b3f5f1 --- /dev/null +++ b/boot/zephyr/boards/stm32h750b_dk_stm32h750xx_ext_flash_app.overlay @@ -0,0 +1,7 @@ +/ { + chosen { + zephyr,flash = &flash0; + zephyr,flash-controller = &flash; + zephyr,code-partition = &boot_partition; + }; +}; From 2a84c8cd0e2ff4cdacbe485f1582f9add22a92e7 Mon Sep 17 00:00:00 2001 From: Abderrahmane JARMOUNI Date: Mon, 6 Oct 2025 01:05:58 +0200 Subject: [PATCH 2/2] boot: zephyr: boards: stm32h750b_dk_ext_flash_app: remove conf file STM32_MEMMAP is no longer needed since it is now set on the Zephyr side in the board's 'Kconfig.defconfig' when building MCUboot app. Also, BOOT_MAX_IMG_SECTORS_AUTO no longer need to be disabled after including the 'soc-nv-flash' binding in the 'st,stm32-qspi-nor' binding, then adding the 'erase-block-size' & 'write-block-size' properties in external Flash DT node. Signed-off-by: Abderrahmane JARMOUNI --- boot/zephyr/boards/stm32h750b_dk.conf | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 boot/zephyr/boards/stm32h750b_dk.conf diff --git a/boot/zephyr/boards/stm32h750b_dk.conf b/boot/zephyr/boards/stm32h750b_dk.conf deleted file mode 100644 index ba48f0ae9..000000000 --- a/boot/zephyr/boards/stm32h750b_dk.conf +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_STM32_MEMMAP=y - -CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n -CONFIG_BOOT_MAX_IMG_SECTORS=4096