Skip to main content
APara.5
Associate II
June 9, 2021
Question

error with full chip erase STM cube programmer

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 topic has been closed for replies.

6 replies

TDK
June 9, 2021

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""."
APara.5
APara.5Author
Associate II
June 9, 2021

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

Tesla DeLorean
Guru
June 9, 2021

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
June 9, 2021

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""."
APara.5
APara.5Author
Associate II
June 9, 2021

It does