Open
Description
Describe the bug
When trying to run the "boards/st/hello_world_xip" sample from #88579 (or the upcoming Zephyr release) with the following lines added to prj.conf:
CONFIG_FLASH=y
CONFIG_LOG=y
CONFIG_FLASH_LOG_LEVEL_ERR=y
The external flash initialisation fails with the following log message: "flash_stm32_xspi: XSPI Init failed"
However, the flash API is used to update or manage the MCUBoot images. (E.g. Flash Image API, MCUboot image contol API, IMG_MANAGER). So if the external flash isn't initialised, the image can't be updated or swapped.
Regression
- This is a regression.
Steps to reproduce
- Use stm32h5 run application in external flash memory XIP #88579 or the upcoming Zephyr release, if the PR is already merged into main.
- Add the following lines to prj.conf of the "boards/st/hello_world_xip" sample
CONFIG_FLASH=y
CONFIG_LOG=y
CONFIG_FLASH_LOG_LEVEL_ERR=y
- build the sample:
west build -p -b stm32h573i_dk samples/boards/st/hello_world_xip/ --sysbuild -- -DSB_CONFIG_BOOTLOADER_MCUBOOT=y
- flash the sample to a stm32h573i_dk board:
west flash
- Open UART Port of the ST-Link and the error should appear in the log.
Relevant log output
flash_stm32_xspi: XSPI Init failed
Impact
Major – Severely degrades functionality; workaround is difficult or unavailable.
Environment
- OS: Windows
- Zephyr: stm32h5 run application in external flash memory XIP #88579
Additional Context
No response