cancel
Showing results for 
Search instead for 
Did you mean: 

error with full chip erase STM cube programmer

APara.5
Associate II

When i try to perform a full chip erase, i get the error: mass erase operation failed. please verify flash protection. I tried doing it sector by sector but get an error. I tried a few times and disconnected and reconnected my board. I'm not sure where to verify flash protection.

This discussion is locked. Please start a new topic to ask your question.
6 REPLIES 6
TDK
Super User

What chip? Show a screenshot of the option byte values.

What program are you using? STM32CubeProgrammer seems to work better most of the time, but ST-Link Utility can also work.

If you feel a post has answered your question, please click "Accept as Solution".

I tried using both ST-Link Utility and STM32CubeProgrammer and get the same failing error on both.
_legacyfs_online_stmicro_images_0693W00000BaYXAQA3.png
_legacyfs_online_stmicro_images_0693W00000BaYXUQA3.png

So STM32G0, ST-LINK Utilites does look to be having issues reading the memory, not clear why.

Is this a board of your own construction?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Super User

Not real sure. Verify the target voltage matches what you expect.

If you feel a post has answered your question, please click "Accept as Solution".

No, this is the NUCLEO-GO71RB I obtained from ST

It does