Replies: 1 comment 10 replies
-
You should check the Reference manual and see which option byte you should use. You can also read the https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf, the first flash can require some specific operation. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I designed a board based on the MCU from the tittle. Tried to upload a sketch using SWD and UART but no luck. No matter what I try, I get a message:
Error: failed to erase memory.
I tried to unlock the MCU over the STM32CubeProgrammer, but no luck either. It says it is set to AA. When I tried to erase the flash it said:
Error: Mass erase operation failed. Please verify flash protection.
However, when I use MikroElektronika CodeGrip and Necto Studio, I can easily program the chip. No issues here.
Any idea what should I try to do? As far as I can see, I need to remove flash protection. How?
Beta Was this translation helpful? Give feedback.
All reactions