Skip to main content
Associate III
September 30, 2023
Solved

TouchGFX build errors

  • September 30, 2023
  • 2 replies
  • 5904 views

I am using STM32CubeIDE 1.13.2 in Windows 11 and am trying to install TouchGFX.4.22.0 and its "Graphic Application" for a STM32H727i-DISCO board.

The project is newly created and there are 14 errors that I need help fixing.

As requested by the IDE, CRC was configured and activated before adding X-CUBE-TOUCHGFX.

Here are the errors. The .hpp files do appear on the same drive that CubeIDE and the project are on, but the IDE can't find them.

fatal error: platform/driver/touch/TouchController.hpp: No such file or directory
fatal error: texts/TypedTextDatabase.hpp: No such file or directory
fatal error: touchgfx/hal/BlitOp.hpp: No such file or directory
fatal error: touchgfx/hal/GPIO.hpp: No such file or directory
fatal error: touchgfx/hal/HAL.hpp: No such file or directory
fatal error: touchgfx/hal/HAL.hpp: No such file or directory
make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/OSWrappers.o] Error 1
make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/STM32DMA.o] Error 1
make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/TouchGFXConfiguration.o] Error 1
make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/TouchGFXGeneratedHAL.o] Error 1
make: *** [TouchGFX/target/subdir.mk:25: TouchGFX/target/STM32TouchController.o] Error 1
make: *** [TouchGFX/target/subdir.mk:25: TouchGFX/target/TouchGFXGPIO.o] Error 1
make: *** [TouchGFX/target/subdir.mk:25: TouchGFX/target/TouchGFXHAL.o] Error 1
make: *** Waiting for unfinished jobs....

 

For the first three errors, these are the #includes statements from their respective files:

#include <platform/driver/touch/TouchController.hpp>

#include <texts/TypedTextDatabase.hpp>

#include <touchgfx/hal/BlitOp.hpp>

 

Does anyone have any idea why the IDE cannot find these files?

Best answer by Yoann KLEIN

Hello @BobWalance,

Did you generate code both in STM32CubeMX and TouchGFX Designer ?

For TouchGFX introduction, you can check the articles of the documentation.

Those links could also be useful :

2 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
October 3, 2023

Hello @BobWalance,

Did you generate code both in STM32CubeMX and TouchGFX Designer ?

For TouchGFX introduction, you can check the articles of the documentation.

Those links could also be useful :

Associate III
October 4, 2023

@Yoann KLEIN , I will take a look at that. I'd like to eventually get it working. However, for now I've switched to an external Nextion LCD. It's relatively much simpler to get working, and its capabilities are sufficient for my project. Thanks for your help.

BSam.1
Associate
January 15, 2024

Hi, Chief,

 

    Thanks for the clarification.  Yes, I found it very easy to start with TouchGFX to create the GUI on the -DISCO or DK boards with built-in displays also.  My struggle was more with adding the additional controls and communication afterwards in CubeMX and CubeIDE.

Benjamin