Skip to content

Conversation

@JarmouniA
Copy link
Contributor

@JarmouniA JarmouniA commented Oct 6, 2025

Following the introduction of stm32h750b-dk 'ext_flash_app' board variant (zephyrproject-rtos/zephyr#97037), for storing apps in external Flash and chainloading them with MCUboot that's placed in internal Flash, we need a DT overlay to designate internal Flash & controller as the chosen 'zephyr,flash' & 'zephyr,flash-controller' for the MCUboot Zephyr Application. This way, no DT overlay will be needed at the Zephyr user app level.

Turn the board's .conf & .overlay files into a SoC ones, so they apply to all boards using STM32H750XX SoC.

BOOT_MAX_IMG_SECTORS_AUTO=n no longer needed after adding an external flash node to board's common .dtsi with 'soc-nv-flash' compatible, & declaring the 'erase-block-size' property.

@JarmouniA
Copy link
Contributor Author

Cc @erwango @FRASTM

@JarmouniA JarmouniA marked this pull request as draft October 10, 2025 11:10
@JarmouniA JarmouniA marked this pull request as ready for review October 14, 2025 18:02
@JarmouniA
Copy link
Contributor Author

@nordicjm all tests are passing in zephyrproject-rtos/zephyr#97037, this PR is ready to be merged.

Copy link
Contributor

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but aim is to get rid of this asap.

Copy link
Contributor

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late catch, sorry (but as I understood there will be anyway some changes needed).

Instead of using <board>_<file_suffix>, let's move to <soc>_<file_suffix> already since it will save us from some duplication (and allow other (out of tree) H750xx users to benefit from this)

@JarmouniA JarmouniA force-pushed the fix_h750b-dk_ext-flash-app branch from 2a84c8c to 7dd148c Compare October 17, 2025 11:37
Following the introduction of stm32h750b-dk 'ext_flash_app' board variant,
for storing apps in external Flash and chainloading them with MCUboot that's
placed in internal Flash,
we need a DT overlay to designate internal Flash & controller as the chosen
'zephyr,flash' & 'zephyr,flash-controller' for the MCUboot Zephyr Application.

BOOT_MAX_IMG_SECTORS_AUTO no longer need to be disabled after
including the 'soc-nv-flash' compatible in the board's external flash node,
& declaring the 'erase-block-size' & 'write-block-size' properties.

Signed-off-by: Abderrahmane JARMOUNI <[email protected]>
@JarmouniA JarmouniA force-pushed the fix_h750b-dk_ext-flash-app branch from 7dd148c to 94960b9 Compare October 17, 2025 11:41
@JarmouniA JarmouniA requested review from erwango and nordicjm October 17, 2025 11:42
@JarmouniA
Copy link
Contributor Author

@nordicjm @de-nordic Can this PR be merged?

@nordicjm nordicjm merged commit 1dd8ae6 into mcu-tools:main Oct 20, 2025
64 checks passed
@JarmouniA JarmouniA deleted the fix_h750b-dk_ext-flash-app branch October 20, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants