-
Notifications
You must be signed in to change notification settings - Fork 8.2k
stm32h5 run application in external flash memory XIP #88579
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
Changes from all commits
b4ab92f
0f98bf2
d6c4d25
675041b
d922a78
5512729
edce0de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ supported: | |
| - spi | ||
| - octospi | ||
| - can | ||
| - usb_device | ||
| - i2c | ||
| - rtc | ||
| - usbd | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| * Copyright (c) 2025 STMicroelectronics | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| /* | ||
| * Define the device, controller and partition to be the external memory | ||
| * for running the application in external NOR from MCUboot | ||
| */ | ||
| / { | ||
| chosen { | ||
| zephyr,flash = &mx25lm51245; | ||
| zephyr,flash-controller = &mx25lm51245; | ||
| }; | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| * Copyright (c) 2025 STMicroelectronics | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
maass-hamburg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| */ | ||
|
|
||
| /* | ||
| * Define the device, controller and partition to be the external memory | ||
| * for running the application in external NOR from MCUboot | ||
| */ | ||
| / { | ||
| chosen { | ||
| zephyr,flash = &mx25lm51245; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe it would be better to use the gparent of the chosen zephyr,code-partition if USE_DT_CODE_PARTITION is enabled in general, as having this overlay needed when using a image with mcuboot. Changes like: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, but I am not sure this is the purpose of this PR fixing the issue for the 4.2.0 release There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay then in another PR |
||
| zephyr,flash-controller = &mx25lm51245; | ||
| }; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,4 +104,12 @@ config STM32_BACKUP_PROTECTION | |
| Enabled for SoCs for which access protection to backup domain | ||
| resources needs to be explicitly handled. | ||
|
|
||
| config STM32_APP_IN_EXT_FLASH | ||
| bool | ||
etienne-lms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| help | ||
| Allows the SoC clock driver to correctly initialize the | ||
| Q/O/XSPI controller clocks when the application is residing | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So far, it only deals with XSPI. Q/O SPI will have to be updated to take it into account. |
||
| in external Flash and is chainloaded with MCUboot. | ||
| Whether the app is eXecuted in Place (XiP) depends on the MCUboot mode used. | ||
etienne-lms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| endif # SOC_FAMILY_STM32 | ||
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.
maybe a good idea, to increase the mcuboot partition, now that the other space is no longer used
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.
Usually the boot partition is 64K, a next PR could resize but I am not sure this was the purpose here (mainly a bug fix)