-
Notifications
You must be signed in to change notification settings - Fork 7.7k
stm32 ospi driver : 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
base: main
Are you sure you want to change the base?
Conversation
d02c1a8
to
f4991ef
Compare
MCUboot mode should not be set on MCUboot side in my opinion, it should be set on Zephyr side using Sysbuild (SB_CONFIG_MCUBOOT_MODE_DIRECT_XIP) at the board or app level so that the setting is propagated properly to both MCUboot and App builds. |
Define the partition of the external octo NOR in the b_u858i_iot02a.dts to avoid conflict with the partitioning of the b_u858i_iot02a_ns.dts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For boards that have enough space/sectors in internal Flash to be used without MemMapped external Flash (with or without MCUboot), I think it makes more sense to create a board variant for the App in Ext Flash usecase.
This way, both configurations can be tested in CI without need for extra overlays..., and users will have ready-to-use configurations to choose from depending on their requirements. This will make the conf on MCUboot side simpler as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
creating a board variant : b_u585i_iot02a/stm32u585xx/xip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ext_flash_app is a more accurate name in my opinion
fixing compliance issues |
4028e70
to
a08697f
Compare
Creating a variant (only) for the b_u585i_iot02a disco kit : b_u585i_iot02a/stm32u585xx/xip
|
rebase on 87917a1 |
84e4be6
to
30f5ca9
Compare
changing the name of the variant to "ext_flash_app" |
rebase
Do you mean that .conf file in the mcuboot do not need to set
|
Yes, it doesn't.
zephyr/soc/espressif/Kconfig.sysbuild Line 5 in 47b07e5
|
Rebase on 47b07e5 |
Create a new variant to execute in place on the external octoSPI flash NOR of the b_u585i_iot02a disco kit Signed-off-by: Francois Ramu <[email protected]>
Run the sample to execute in place on the external flash of the b_u585i_iot02a variant 'ext_flash_app' disco kit, with_boot application is built and linked for the external flash Signed-off-by: Francois Ramu <[email protected]>
Takes the mcu-tools/mcuboot#2399 Signed-off-by: Francois Ramu <[email protected]>
|
Following the stm32h5 run application in external flash memory XIP
This PR makes the samples/sysbuild/with_mcuboot --sysbuild running on a variant of the stm32u585 disco kit.
Requires the ./bootloader/mcuboot/bootzephyr/boards/b_u585i_iot02a_stm32u585xx_ext_flash_app.conf :
run the
west build -p -b b_u585i_iot02a samples/sysbuild/with_mcuboot --sysbuild
Requires boot/zephyr/boards/b_u585i_iot02a.conf