cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Makefile and have any sample to refer ?

miker
Associate III

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

 

4 REPLIES 4
miker
Associate III

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

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%C3%B1oz/
GaetanGodart
ST Employee

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,

Gaetan Godart
Software engineer at ST (TouchGFX)
Osman SOYKURT
ST Employee

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