cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Designer 4.21.3: gcc/makefile_cm7:368: recipe for target 'generate_assets' failed makefile_cm7:49: recipe for target 'all' failed ../../gcc/Makefile:10: recipe for target 'flash' failed

Krautermann
Senior II

I just installed TouchGFX Designer 4.21.3 yesterday and now whenever I try to run simulator or run target I get these errors:

        gcc/makefile_cm7:403: recipe for target 'CM7/TouchGFX/build/STM32H745I_DISCO/CM7/TouchGFX/gui/src/main_screen/mainView.o' failed
        make[3]: *** [CM7/TouchGFX/build/STM32H745I_DISCO/CM7/TouchGFX/gui/src/main_screen/mainView.o] Error 1
        make[3]: Leaving directory 'c:/Users/o.sang/Documents/TouchGFX/MyApplication_3'
        gcc/makefile_cm7:368: recipe for target 'generate_assets' failed
        make[2]: *** [generate_assets] Error 2
        make[2]: Leaving directory 'c:/Users/o.sang/Documents/TouchGFX/MyApplication_3'
        makefile_cm7:49: recipe for target 'all' failed
        make[1]: *** [all] Error 2
        make[1]: Leaving directory 'C:/Users/o.sang/Documents/TouchGFX/MyApplication_3/gcc'
        ../../gcc/Makefile:10: recipe for target 'flash' failed
        make: *** [flash] Error 2
        Failed
    Failed

I check other posts in the ST community but there were no answers to solve my problem. I used STM32 Programmer and was able to connect with my STM32H745I-disco board, so ST-Link is working fine!

This is my configuration for the build:


_legacyfs_online_stmicro_images_0693W00000bilnzQAA.pngCould someone please help solve this problem?

14 REPLIES 14

@Osman SOYKURT​ 

Log from Run Simulator:

Run Simulator
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Reading ./application.config
        Reading ./target.config
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
        Done
    Post Generate Target
        touchgfx update_project
        .cproject file: ../../STM32CubeIDE/CM7/.cproject
        Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project
        Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject
        Done
    Compile
        make -f simulator/gcc/Makefile -j8
        Reading ./application.config
        Reading ./target.config
        Compiling gui/src/screen1_screen/Screen1View.cpp
        gui/src/screen1_screen/Screen1View.cpp:2:10: fatal error: stm32h7xx_hal.h: No such file or directory
         #include "stm32h7xx_hal.h"
                  ^~~~~~~~~~~~~~~~~
        compilation terminated.
        generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/screen1_screen/Screen1View.o' failed
        make[2]: *** [build/MINGW32_NT-6.2/gui/src/screen1_screen/Screen1View.o] Error 1
        generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
        make[1]: *** [generate_assets] Error 2
        simulator/gcc/Makefile:32: recipe for target 'all' failed
        make: *** [all] Error 2
        Failed
    Failed

Run Target works!

Had to removed all the compiling and generating lines because post was too long and won't let me post it...

Run Target
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Reading ./application.config
        Reading ./target.config
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
        Done
    Post Generate Target
        touchgfx update_project
        .cproject file: ../../STM32CubeIDE/CM7/.cproject
        Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project
        Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject
        Done
    Compile
        make -f ../../gcc/Makefile clean && make -f ../../gcc/Makefile -j8
        make -C C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc/ -f makefile_cm4 clean
        make[1]: Entering directory 'C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc'
        make[2]: Entering directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
        Cleaning: STM32H745I_DISCO
        make[2]: Leaving directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
        make[1]: Leaving directory 'C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc'
        make -C C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc/ -f makefile_cm7 clean
        make[1]: Entering directory 'C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc'
        make[2]: Entering directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
        Cleaning: STM32H745I_DISCO
        make[2]: Leaving directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
        make[1]: Leaving directory 'C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc'
        make: 'Makefile' is up to date.
        Done
    Flash
        make -f ../../gcc/Makefile flash
        make -C C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc/ -f makefile_cm4 flash
        make[1]: Entering directory 'C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc'
        make[2]: Entering directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
        make[3]: Entering directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
 
        
        
        
        Memory Programming ...
        Opening and parsing file: target.hex
          File          : target.hex
          Size          : 524.46 KB 
          Address       : 0x08000000 
        
        
        Erasing memory corresponding to segment 0:
        Erasing internal memory sector 0
        Erasing memory corresponding to segment 1:
        Erasing internal memory sectors [0 1]
        Erasing memory corresponding to segment 2:
        Erasing external memory sectors [0 2]
        Download in Progress:
        ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±± 0%
        ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ 96%ÛÛ 100%
        
        File download complete
        Time elapsed during download operation: 00:00:04.410
        
        Hard reset is performed
        make[2]: Leaving directory 'c:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2'
        make[1]: Leaving directory 'C:/Users/o.sang/Documents/TouchGFX/LED_Toggling_2/gcc'
        Done
    Done

@Pavel A.​ See reply below now, I hope this answers your question.

I don't know why I keep getting error at either run target or simulation from time to time on each different project.

@Osman SOYKURT​ any success on finding why this error occurs on my side?

Also to answer your question, I am using Windows 10. I have also attached the log from AppData\Roaming

Krautermann
Senior II

Problem appears in touchgfx example as well. Trying to run target for Smart Home example on my STM32H745I Disco board but it's giving out recipe for target '_clean_' failed and so on...