cancel
Showing results for 
Search instead for 
Did you mean: 

Erase the MCU

Carl_G
Senior

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!

2 REPLIES 2

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

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

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