Question
Recipe for target 'flash' failed
I am getting the following code error. The program build successfully in the simulator but when I try 'Run Target' it fails.
I use the following Build settings. And the detail log is below.
Run Target
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Generating generated/texts/src/Texts.cpp
Generating generated/texts/src/LanguageGb.cpp
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project --project-file=../STM32H750B-DK.ioc --platform=m7
Done
Compile
make -f ../gcc/Makefile -j8
Generating TouchGFX/generated/texts/src/Texts.cpp
Generating TouchGFX/generated/texts/src/LanguageGb.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_40_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_80_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_80_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Kerning_verdana_40_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_10_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Kerning_verdana_10_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Kerning_verdana_80_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_10_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_40_4bpp.cpp
Compiling TouchGFX/generated/texts/src/LanguageGb.cpp
Compiling TouchGFX/generated/texts/src/Texts.cpp
Linking TouchGFX/build/bin/target.elf
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
extflash.bin - External flash, binary
Done
Flash
make -f ../gcc/Makefile -j8 flash
Linking TouchGFX/build/bin/target.elf
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
extflash.bin - External flash, binary
-------------------------------------------------------------------
STM32CubeProgrammer v2.2.0
-------------------------------------------------------------------
ST-LINK SN : 0668FF363931594E43111416
ST-LINK FW : V2J35M26
Voltage : 3.23V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x449
Device name : STM32F74x/STM32F75x
Flash size : 64 KBytes
Device type : MCU
Device CPU : Cortex-M7
Memory Programming ...
Opening and parsing file: target.hex
File : target.hex
Size : 2141868 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Erasing memory corresponding to segment 1:
Erasing external memory sector 0
Error: failed to erase memory
Error: failed to erase memory
Hard reset is performed
gcc/Makefile:279: recipe for target '_flash_' failed
make[1]: *** [_flash_] Error 1
../gcc/Makefile:50: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed