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
2025-05-05 6:01 AM
Hello @Neyus ,
Were you able to flash before ? If yes have you tried to manually erase memory with STM32CubeProgrammer ?
BR,
Louis B.
2025-05-05 6:07 AM
Hello @LouisB
I tried erasing the external memory with the CubeProgrammer without success. Flashing the internal Flash works, but it fails every time I try to flash the external one. Could the Display Board be Faulty? I also tried downgrading the IDE and Programmer but nothing works.
BR,
Neyus
2025-05-07 2:19 AM
Hello @Neyus ,
What's the message you get when you can erase / flash in cube programmer ?
BR,
2025-05-07 5:04 AM
Hello @LouisB ,
I have now imported the .stdl file that TouchGFX has provided for the exact board + external screen combination. When trying to do a mass erase, this error occours:
There is no write protection enabled for the adress of the flash chip in CubeProgrammer
I am also not able to connect the board to ST-Link Utility and updated the board with CubeIDE to the newest ST-Link Firmwareversion
BR