Skip to main content
Visitor II
June 9, 2021
Question

error with full chip erase STM cube programmer

  • June 9, 2021
  • 2 replies
  • 2457 views

When i try to perform a full chip erase, i get the error: mass erase operation failed. please verify flash protection. I tried doing it sector by sector but get an error. I tried a few times and disconnected and reconnected my board. I'm not sure where to verify flash protection.

    This topic has been closed for replies.

    2 replies

    Super User
    June 9, 2021

    What chip? Show a screenshot of the option byte values.

    What program are you using? STM32CubeProgrammer seems to work better most of the time, but ST-Link Utility can also work.

    APara.5Author
    Visitor II
    June 9, 2021

    I tried using both ST-Link Utility and STM32CubeProgrammer and get the same failing error on both.
    _legacyfs_online_stmicro_images_0693W00000BaYXAQA3.png
    _legacyfs_online_stmicro_images_0693W00000BaYXUQA3.png

    Graduate II
    June 9, 2021

    So STM32G0, ST-LINK Utilites does look to be having issues reading the memory, not clear why.

    Is this a board of your own construction?

    Super User
    June 9, 2021

    Not real sure. Verify the target voltage matches what you expect.

    APara.5Author
    Visitor II
    June 9, 2021

    It does