cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX build fails

Aziz
Associate II

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

3 REPLIES 3
Imen.D
ST Employee

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.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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

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 MORADI
ST Software Developer | TouchGFX