2026-04-27 1:57 AM - last edited on 2026-04-30 2:17 AM by KDJEM.1
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.
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.
2026-04-27 3:22 AM - edited 2026-04-27 3:23 AM
Hello,
@Tharun123 wrote:
- 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”
Based on this statement I have the impression there is a problem with the external memory.
Try to run the QSPI example provided in CubeH7: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H745I-DISCO/Examples/QSPI/QSPI_MemoryMappedDual
If it doesn't work there is an issue with the external memory, either the memory is broken or there is something gone wrong on the board/PCB!