2025-05-03 5:39 AM - last edited on 2025-05-07 2:34 AM by Andrew Neil
Hello,
this error really drives me crazy. When trying to flash the programm from the ToughGFX App or CubeIDE the external Memory can't be erased. I use the recommended CubeMXVersion of 6.14 and have the latest CubeProgrammer and CubeIDE with STM32Cube FW_U5 V1.7.0. The whole ToughGFX log is attached. Thanks in advance!
These are the following errors that are occurring:
TouchGFX:
Erasing memory corresponding to sector 0:
Erasing external memory sector 0
Error: failed to erase memory
gcc/include/flash_sections_int_ext.mk:5: recipe for target '_extflash_' failed
make[1]: *** [_extflash_] Error 1
../gcc/Makefile:52: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
CubeIDE:
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
\STM32CubeIDE\\Debug\\STM32U575ZI-NUCLEO-AZ2.elf
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation
Solved! Go to Solution.
2025-05-13 6:10 AM
Do you mean the TouchGFX project? I’ve only tested the board combination using either a blank screen or a single button—just the "Board Selector" and "Blank" options. I haven’t done anything else beyond that.
2025-05-14 5:33 AM
I dont see what it can be, but If you were never able in the past to flash the external memory, I suspect that you have a faulty board. If you have a other board available you can try to be sure.
BR,
2025-05-14 6:23 AM
@Neyus, is the screen connected when you try to erase memory ?
2025-05-14 6:48 AM
@LouisB yes the screen is in its dedicated socket on the nucleo STM Board when trying to erase the memory or flash it with TouchGFX. I do not have a second screen available to test if its a faulty board.