Skip to main content
Associate III
July 9, 2025
Solved

How to create Makefile and have any sample to refer ?

  • July 9, 2025
  • 5 replies
  • 464 views

i'm successful to drive RGB LCD 480*272 with stm32cube IDE , but if i change to touchGFX and load into target , it have some following error , remark: simulator is OK

 

 

 

miker_0-1752054897684.png

 

This topic has been closed for replies.
Best answer by Osman SOYKURT

Hello @miker ,

We have a dedicated article explaining in detail how to set up, build, and debug a TouchGFX project using CMake as build system. I recommend you to look at it : https://support.touchgfx.com/docs/development/scenarios/cmake-as-build-system

5 replies

mikerAuthor
Associate III
July 9, 2025

hello, everyone! I use a customed LCM driver board with STM32H750ZBT6 to drive a RGB_LCD that resolution is 480*272 , The LCD is normal and successful to drive when i generate the code with stm32CubeIDE ,  but if i generate the code with CMFile , using touchGFX to create UI , it have some error list under touchGFX 

 

 

miker_2-1752053515355.pngmiker_3-1752053624089.png

 

 

 

miker_1-1752053351333.png

 

 

Javier1
Principal
July 9, 2025

Are you sure your makefile file is in that directory? , search for it and do the 'make' while youre in that path

hit me up in https://www.linkedin.com/in/javiermuñoz/
GaetanGodart
Technical Moderator
July 10, 2025

Hello @miker ,

 

It seems you are using CMake toolchain.

You can only build and flash from TouchGFX Designer if you use STM32CubeIDE toolchain (gcc).

To build and flash using CMake, you should :

  1. Generate code in TouchGFX Designer
  2. Open the project in VS Code (with the STM32 extension) or use a terminal with CMake and Ninja/Make
  3. Build the project using the CMake build system
  4. Flash the board using STM32CubeProgrammer, ST-LINK Utility, or the VS Code extension

 

Regards,

Osman SOYKURT
Osman SOYKURTBest answer
Technical Moderator
July 22, 2025

Hello @miker ,

We have a dedicated article explaining in detail how to set up, build, and debug a TouchGFX project using CMake as build system. I recommend you to look at it : https://support.touchgfx.com/docs/development/scenarios/cmake-as-build-system

Osman SOYKURTST Software Developer | TouchGFX
Osman SOYKURT
Technical Moderator
August 5, 2025

Hello @miker ,

Have you been able to solve your issue? 

Osman SOYKURTST Software Developer | TouchGFX