Skip to content

stm32u5 run application in external flash memory XIP #93032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FRASTM
Copy link
Collaborator

@FRASTM FRASTM commented Jul 11, 2025

Following the stm32h5 run application in external flash memory XIP

This PR makes the samples/sysbuild/with_mcuboot --sysbuild running on the stm32u585 disco kit

Requires the ./bootloader/mcuboot/bootzephyr/boards/b_u585i_iot02a.conf :

CONFIG_BOOT_DIRECT_XIP=y
CONFIG_STM32_MEMMAP=y

run the west build -p -b b_u585i_iot02a samples/sysbuild/with_mcuboot --sysbuild

*** Booting MCUboot v2.1.0-rc1-390-gfbc9aff5acc1 ***
*** Using Zephyr OS build v4.2.0-rc2-72-g8c58be376223 ***
*** Booting Zephyr OS build v4.2.0-rc2-72-g8c58be376223 ***
Address of sample 0x70000000
Hello sysbuild with mcuboot! b_u585i_iot02a

FRASTM added 3 commits July 11, 2025 16:43
Define with CONFIG_FLASH_BASE_ADDRESS when the external flash
is on an octoSPI node : "st,stm32-ospi" compatible

Signed-off-by: Francois Ramu <francois.ramu@st.com>
Add the XSPI 2 which is an octoSPI connection to a octo NOR flash
mx25lm51245 on the stm32u585 disco kit
Define the partition on the 64MBytes space of the external flash
Use the STM32Cube programmer to flash with the corresponding
external loader for XiP mode.
Removing usb_device will avoid test feature for that board.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
Run the sample to execute in place on the external flash of the
b_u585i_iot02a disco kit.
with_boot application is built and linked for the external flash

Signed-off-by: Francois Ramu <francois.ramu@st.com>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant