Skip to content

drivers: flash_stm32h7: Fix REAL_FLASH_SIZE_KB size #93739

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rpiper
Copy link

@rpiper rpiper commented Jul 25, 2025

For devices other than the stm32h745/747/755/757 that use dual-core cortex-M4/cortex-M7, do not multiply flash controller size by 2. Single-core stm32h7x devices define their flash-controllers dtsi as a single area, not two banks. Use the presence of the bank2-flash-size prop to determine if this is a dual-core stm3h7x or not.

This fixes #93714

For devices other than the stm32h745/747/755/757 that use
dual-core cortex-M4/cortex-M7, do not multiply flash
controller size by 2. Single-core stm32h7x devices define
their flash-controllers dtsi as a single area, not two banks.
Use the presence of the bank2-flash-size prop to determine if
this is a dual-core stm3h7x or not.
Copy link

Hello @rpiper, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STM32H743: Incorrect flash memory configuration causes dual-bank operations to fail and memory corruption
3 participants