Skip to main content
Associate II
Aug 9, 2024 2:42 PM UTC
Question

TouchGFX build fails

when i run on touchgfx but with cubeide when i build there isn't error :

gcc/makefile_cm7:503: recipe for target 'CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/TouchGFX/target/generated/TouchGFXGeneratedHAL.o' failed
make[3]: *** [CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/TouchGFX/target/generated/TouchGFXGeneratedHAL.o] Error 1
make[3]: Leaving directory 'c:/Users/Aziz/Downloads/aaaaaa/MV_Display'
gcc/makefile_cm7:438: recipe for target 'generate_assets' failed
make[2]: Leaving directory 'c:/Users/Aziz/Downloads/aaaaaa/MV_Display'
make[2]: *** [generate_assets] Error 2
Makefile_cm7:51: recipe for target 'all' failed
make[1]: Leaving directory 'C:/Users/Aziz/Downloads/aaaaaa/MV_Display/gcc'
make[1]: *** [all] Error 2
../../gcc/Makefile:10: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed

This topic has been closed for replies.

3 replies

ST Technical Moderator
Aug 9, 2024 3:48 PM UTC

Hello @Aziz , 

Make sure to use latest release of your software and tools.

Ensure that all necessary source files are included in the project. 

Make sure to add TouchGFX core library to the linker settings.

I advise you to try and run a ready-to-use TouchGFX project within the STM32CubeH7 MCU package and check if it works properly for you or not.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
AzizAuthor
Associate II
Aug 10, 2024 9:14 PM UTC

i tried but it doesn't worked the same problem :

gcc/makefile_cm7:503: recipe for target 'CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/TouchGFX/target/generated/TouchGFXGeneratedHAL.o' failed
make[3]: Leaving directory 'c:/Users/Aziz/Downloads/aaaaaa/MV_Display'
make[3]: *** [CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/TouchGFX/target/generated/TouchGFXGeneratedHAL.o] Error 1
make[2]: *** [generate_assets] Error 2
gcc/makefile_cm7:438: recipe for target 'generate_assets' failed
make[2]: Leaving directory 'c:/Users/Aziz/Downloads/aaaaaa/MV_Display'
Makefile_cm7:51: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory 'C:/Users/Aziz/Downloads/aaaaaa/MV_Display/gcc'
../../gcc/Makefile:10: recipe for target 'flash' failed

ST Employee
Aug 14, 2024 12:21 PM UTC

Hello @Aziz ,

Please open the STM32CubeMX project (the .ioc file), and generate code from there. Then, try to use TouchGFX again to run on your target. 

This will most likely fix your issue.

Best regards,

Mohammad MORADIST Software Developer | TouchGFX