-
Notifications
You must be signed in to change notification settings - Fork 680
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
mcuboot supports the stm32 external octo-flash in XiP #1891
base: main
Are you sure you want to change the base?
Conversation
Requires the ../zephyr/drivers/flash/flash_stm32_ospi.c to support the XiP as in zephyrproject-rtos/zephyr#61082 $ west build -p always -b b_u585_iot02a -d build_mcuboot ../bootloader/mcuboot/boot/zephyr
assuming there is a valid image at Primary slot in the external NOR flash. AT least one valid image is required in the external NOR flash. |
when building the mcu boot there is no slot for image (no image, only a mcuboot) flashing at boot_partition of the flash0
and
|
c135942
to
0689622
Compare
With CONFIG_STM32_MEMMAP flag get NOR flash 32 bytes header Read the NOR flash to get header of the image. The FLASH_DEVICE is now the external NOR defined by the board device tree to be the first qspi/ospi/xspi instance (not necessarily zephyr, flash-controller) Signed-off-by: Francois Ramu <[email protected]>
Define the stm32 disco board configuration to set the STM32 XIP mode that will enable the MemoryMapped mode. See Kconfig of the stm32 soc. Choose the mcu_boot partition where to build ../bootloader/mcuboot/boot/zephyr Signed-off-by: Francois Ramu <[email protected]>
Define the stm32 disco board configuration to set the STM32 XIP mode that will enable the MemoryMapped mode. See Kconfig of the stm32 soc. Choose the mcu_boot partition where to build ../bootloader/mcuboot/boot/zephyr Signed-off-by: F. Ramu <[email protected]>
Signed-off-by: F. Ramu <[email protected]>
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Prepare the boot/zephyr/flash_map_extended.c to support the stm32 MemoryMapped mode where the application is XiP from a external octo/quad flash memory
This is done by setting the CONFIG_STM32_MEMMAP flag which configures the octo/quad flash stm32 driver in MemoryMapped mode.
The MCUBOOT is required to validate the image which is supposed to be in the external flash memory. With
The mcuboot is built, linked and stored for the stm32 internal flash. The stm32 internal flash must declare the
Image slot 0 is located in the external NOR flash to be executed in XiP.