Skip to main content
Visitor II
January 28, 2025
Question

Stm32F030C8 Failed to Erase Memory Error

  • January 28, 2025
  • 1 reply
  • 795 views

Hi, I hope Everything is fine. I have a board that uses stm32f030 as the processor. When I open an empty project on stm32, debug or run it, I get the "failed to erase memory" error. I deleted the obtion byte from cubeprogrammer and changed the st link. It gives the same error again. What could be another reason?

    This topic has been closed for replies.

    1 reply

    Super User
    January 28, 2025

    > What could be another reason?

    Likely bad hardware, either the board or the programmer. Is this a genuine chip? Is this a genuine programmer? Can STM32CubeProgrammer program and erase the flash successfully?

    Visitor II
    January 28, 2025

    programmer and pcb are new. There is no such thing as being old. However, I can't delete it successfully from cubeprogrammer. Sometimes I delete it, sometimes it doesn't work. I also changed related cables.  also, I am using 1 uart and 1 spi channel. is it suitable to swap with stm32F072C8T6 ? When I look at the pins there is not much difference. 

    Super User
    January 28, 2025

    > programmer and pcb are new. There is no such thing as being old.

    How is this relevant? Perhaps there is a language translation issue with new/genuine happening, so I will rephrase my questions:

     

    Is the STM32 sourced from a reputable vendor? If not, it could be damaged.

     

    Is the programmer an official programmer such as ST-LINK/V2 or is it a knock-off programmer? Knock off programmers can cause bad behavior.

     

    General power issues or bad manufacturing could also be at fault, such as cold solder joints or an improperly designed board.