Skip to main content
Associate II
August 9, 2024
Question

TouchGFX build fails

  • August 9, 2024
  • 1 reply
  • 972 views

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

1 reply

Technical Moderator
August 9, 2024

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"".ThanksImen"
AzizAuthor
Associate II
August 10, 2024

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
August 14, 2024

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,