Skip to main content
Associate III
August 29, 2023
Question

STM32CubeIDE Mass Erase rather than Sector Erase

  • August 29, 2023
  • 1 reply
  • 1803 views

I have a STM32H723 on a custom board that I'm having a lot of trouble programming. Every time I try to flash it, the erasing of flash sectors fails. I can, however, perform a full chip erase. All the option bytes are configured as they should be, but for whatever reason, erasing sector by sector causes the chip to reset and the flash to fail. 

I'm looking to set up my debugger to perform a full chip erase and then skip the sector erase step of the flash process. By calling "monitor flash mass_erase", I'm able to do the full CE, but I can't find the right command to skip the default erase step.

    This topic has been closed for replies.

    1 reply

    TDK
    August 29, 2023

    I'd be more concerned with why sector erasing is failing. Power supply okay? Sufficient bulk capacitance? VCAPs present?

    You can always create a custom command to program it exactly how you want via an external tools.

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