From 68d097836b1e7843d862db8ace4fe31de91cb5d9 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Wed, 7 May 2025 12:11:51 +0200 Subject: [PATCH] samples: sysbuild: with mcu_boot on the stm32h7rs targets Run the sample to execute in place on the external flash of the stm32h7s78_dk or nucleo_h7s3l8 boards. with_boot is build and linked for the external flash Download the mcuboot zephyr.bin in internal memory Download the with_mcuboot zephyr.signed.bin in external memory Signed-off-by: Francois Ramu --- .../with_mcuboot/boards/nucleo_h7s3l8.overlay | 17 +++++++++++++++++ .../with_mcuboot/boards/stm32h7s78_dk.overlay | 17 +++++++++++++++++ samples/sysbuild/with_mcuboot/sample.yaml | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 samples/sysbuild/with_mcuboot/boards/nucleo_h7s3l8.overlay create mode 100644 samples/sysbuild/with_mcuboot/boards/stm32h7s78_dk.overlay diff --git a/samples/sysbuild/with_mcuboot/boards/nucleo_h7s3l8.overlay b/samples/sysbuild/with_mcuboot/boards/nucleo_h7s3l8.overlay new file mode 100644 index 00000000000..7af649b38c6 --- /dev/null +++ b/samples/sysbuild/with_mcuboot/boards/nucleo_h7s3l8.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2025 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* + * Define the device, controller and partition to be the external memory + * for running the application in external NOR from MCUboot + */ +/ { + chosen { + zephyr,flash = &mx25uw25645; + zephyr,flash-controller = &mx25uw25645; + zephyr,code-partition = &slot0_partition; + }; +}; diff --git a/samples/sysbuild/with_mcuboot/boards/stm32h7s78_dk.overlay b/samples/sysbuild/with_mcuboot/boards/stm32h7s78_dk.overlay new file mode 100644 index 00000000000..d5054ef5cb1 --- /dev/null +++ b/samples/sysbuild/with_mcuboot/boards/stm32h7s78_dk.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2025 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* + * Define the device, controller and partition to be the external memory + * for running the application in external NOR from MCUboot + */ +/ { + chosen { + zephyr,flash = &mx66uw1g45; + zephyr,flash-controller = &mx66uw1g45; + zephyr,code-partition = &slot0_partition; + }; +}; diff --git a/samples/sysbuild/with_mcuboot/sample.yaml b/samples/sysbuild/with_mcuboot/sample.yaml index e1980ff30c1..4a0e53d942d 100644 --- a/samples/sysbuild/with_mcuboot/sample.yaml +++ b/samples/sysbuild/with_mcuboot/sample.yaml @@ -14,6 +14,8 @@ tests: - esp32s3_devkitm/esp32s3/procpu - esp32c3_devkitm - esp32c6_devkitc/esp32c6/hpcore + - nucleo_h7s3l8 + - stm32h7s78_dk integration_platforms: - nrf52840dk/nrf52840 - esp32_devkitc/esp32/procpu