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

stm32: flash: fix flash erase on stm32f3xx series #3744

Merged

Conversation

mrodgers-witekio
Copy link
Contributor

Fix for flash erase not working on STM32F3 series (tested on STM32F303K8 specifically).

STM32F3xx series also needs a wait of at least one clock cycle before reading the BSY bit during a flash erase - previously this was only applied to STM32F1xx series.

This was causing an erase failure due to the wait_ready_blocking not actually waiting until the erase operation is complete, and as a result the EOP bit was not set when checked.

STM32F3xx series also needs a wait of at least one clock cycle before
reading the BSY bit during a flash erase - previously this was only
applied to STM32F1xx series.
Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

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

thanks!

@Dirbaio Dirbaio added this pull request to the merge queue Jan 8, 2025
Merged via the queue into embassy-rs:main with commit 6ec1082 Jan 8, 2025
10 checks passed
@mrodgers-witekio mrodgers-witekio deleted the fix-stm32f3xx-flash-erase branch January 8, 2025 11:06
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