Skip to main content
Senior II
Feb 23, 2025 2:11 PM UTC
Solved

Erase the MCU

I am working on EEPROM emulation. I am programming flash frequently and may have mistakes in my code. When I take a break I'd like to erase the MCU so that I don't have bad code in there possibly wearing out the FLASH. Is there a way in the IDE to just erase the MCU. I can't seem to find any.

 

Thanks!

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Feb 23, 2025 6:27 PM UTC

If not the IDE, directly via the STM32 Cube Programmer GUI

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Feb 23, 2025 6:27 PM UTC

If not the IDE, directly via the STM32 Cube Programmer GUI

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
Feb 23, 2025 7:58 PM UTC

This is not available as a checkbox:

Solved: Re: Partial or Full chip erase before programming? - STMicroelectronics Community

 

However, you can do so in STM32CubeProgrammer as @Tesla DeLorean points out, or you can add an erase as an external tool (see linked thread).

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