-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[feature] Added writing and reading for STM32WL option bytes #1227
[feature] Added writing and reading for STM32WL option bytes #1227
Conversation
5bd1709
to
1f4312f
Compare
I added the while loop. Unfortunately I'm having trouble testing this. The STM32WL modules from Seed Studio come with flash protection enabled. I'm trying to turn off flash protection to write the chip. I can do it in STMCubeProgrammer but I'm struggling to get it done here. When the module isn't in reset, I can read the option bytes. When I put the module in reset, I am unable to read the option bytes, getting only 0's. |
@AlexKlimaj May be before downgrade |
Here is the log from downgrading RDP in STM32CubeProgrammer. I don't see it erasing the WRP bytes.
|
1f4312f
to
77fff34
Compare
I was able to write the option bytes by adding the ability to write to STM32WB_FLASH_OPTR. |
This PR adds reading and writing the option bytes on the STM32WL.