2025-02-23 06:11 AM
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!
2025-02-23 10:27 AM
If not the IDE, directly via the STM32 Cube Programmer GUI
2025-02-23 11:58 AM - edited 2025-02-23 12:00 PM
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).