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

Fix failing flash verification on erase #362

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

Windfisch
Copy link
Contributor

When erasing a 2kb flash page, flash erase verification wanted all u16s with addresses starting from 0 to 2047 to be 0xFFFF.
This includes the u16 located from 2047 to 2048 (inclusive), which contains the last byte of the to-be-erased page and the first byte of the next page.
Surely, this u16 cannot reasonably be expected to be 0xFFFF after the erase.

Stepping over even addresses only solves this issue.

@burrbull
Copy link
Member

Same as #328

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 16, 2021

@bors bors bot merged commit 82806e1 into stm32-rs:master Aug 16, 2021
@Windfisch
Copy link
Contributor Author

That was quick. Thanks <3

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