Skip to main content
Senior II
February 23, 2025
Solved

Erase the MCU

  • February 23, 2025
  • 2 replies
  • 647 views

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!

Best answer by Tesla DeLorean

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

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 23, 2025

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

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

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""."