Skip to content
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

STM32U5: Add flash bank selection when erasing a sector #3583

Merged

Conversation

williams-one
Copy link
Contributor

@williams-one williams-one commented Nov 27, 2024

This addresses the problem in #3561
In the current implementation of blocking_erase_sector for U5 there is no selection of the flash bank that contains the page to be erased.
As a consequence, only pages in bank 1 can be erased. If blocking_erase_sector is called for a page in bank 2, then the corresponding page in bank 1 is cleared.

The implementation mimics what has already implemented for H5.

This same problem has already been raised in the past, and exactly this fix has been proposed, but never implemented. See here
embassy-rs/stm32-data#464 (comment)

At the moment the bank swap is not supported

@Dirbaio Dirbaio added this pull request to the merge queue Nov 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 28, 2024
@Dirbaio Dirbaio added this pull request to the merge queue Nov 28, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 28, 2024
…or-erase

STM32U5: Add flash bank selection when erasing a sector
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 28, 2024
@Dirbaio Dirbaio added this pull request to the merge queue Nov 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 28, 2024
@Dirbaio Dirbaio added this pull request to the merge queue Nov 28, 2024
Merged via the queue into embassy-rs:main with commit 8954c05 Nov 28, 2024
10 checks passed
@williams-one williams-one deleted the add-flash-bank-selection-for-erase branch November 28, 2024 14:38
@williams-one
Copy link
Contributor Author

Thanks @Dirbaio!!

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.

2 participants