Skip to content

stm32h573i_dk and similar: MCUBoot with external flash not able to update image #92883

Open
@Jowllel

Description

@Jowllel

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

  1. Use stm32h5 run application in external flash memory XIP #88579 or the upcoming Zephyr release, if the PR is already merged into main.
  2. 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
  1. build the sample: west build -p -b stm32h573i_dk samples/boards/st/hello_world_xip/ --sysbuild -- -DSB_CONFIG_BOOTLOADER_MCUBOOT=y
  2. flash the sample to a stm32h573i_dk board: west flash
  3. 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

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions