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

clear the PG bit before setting the PER bit #876

Merged
merged 2 commits into from
Mar 19, 2020
Merged

clear the PG bit before setting the PER bit #876

merged 2 commits into from
Mar 19, 2020

Conversation

nerdmaennchen
Copy link
Collaborator

after the flash loader ran the PG bit is still set in the CR register.
in order to program the next page that page needs to be erased first and to get that working the PG bit has to be cleared so the flash controller knows what to do.
this fixes #579

Nightwalker-87 and others added 2 commits February 27, 2020 01:56
CKS32-Clone-Patch broke flashing on STM32 F3xx, F4xx and L1xx. (#761)
after the flash loader ran the PG bit is still set in the CR register.
in order to program the next page that page needs to be erased first and to get that working the PG bit has to be cleared so the flash controller knows what to do.
this fixes #579
@Nightwalker-87 Nightwalker-87 changed the base branch from master to develop March 18, 2020 13:52
@Nightwalker-87 Nightwalker-87 removed the programmer/STLINK/V2 V2 / V2-A / V2-B label Mar 18, 2020
@Nightwalker-87 Nightwalker-87 removed the request for review from bmarvo March 19, 2020 02:26
@Nightwalker-87 Nightwalker-87 merged commit 2ae73e4 into stlink-org:develop Mar 19, 2020
@Nightwalker-87
Copy link
Member

@nerdmaennchen: Thx for your contribution!

@stlink-org stlink-org locked as resolved and limited conversation to collaborators May 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

STM32VL won't flash
2 participants