Question
STM32H745I-DISCO – External flash erase/init failure with TouchGFX project
- April 27, 2026
- 1 reply
- 50 views
Hi Community,
I am using STM32H745I-DISCO board and generated a TouchGFX project and attempted to flash/debug from CubeIDE. The flashing process fails during the erase stage.
Observed Errors
- Initially: “Error: failed to erase memory”
- After enabling external loader (without initialization):
- Erase still fails
- After enabling external loader with Initialize = true:
- “Failed to initialize external memory”
- “Error in initializing ST-LINK device”
- In CubeProgrammer:
- External flash is detected when selecting loader MT25TL01_STM32H745I-DISCO
- However:
- Mass erase fails
- Sector erase also fails
- Error message:
- “Sector erase operation has failed… please verify flash protection”
I am using STM32CubeIDE v1.18.1 and STM32CubeProgrammer: v2.16.x
I have attached screenshots.
Can someone help what could be the issue?
Thanks.
