Skip to main content
Associate
June 1, 2025
Solved

Fatal error Touchgfx on nucleo H755ziq build

  • June 1, 2025
  • 2 replies
  • 397 views

Hello everyone,

I'm completely stuck and could really use some help.

I’ve been trying to integrate TouchGFX into my project and wanted to set up this example:   https://github.com/maudeve-it/ILI9XXX-XPT2046-STM32 which provides functions to handle SPI-based TFT LED touch displays (480x320 or 320x240) controlled by an ILI9488 or ILI9341 + XPT2046.

However, I'm facing issues getting it to work on my Nucleo H755ZIQ board. I’ve added TouchGFX to my project but can't seem to make any progress.

Any guidance would be greatly appreciated!

ThomasBader_0-1748801085975.png

It looks like STM32CubeMX is creating the correct folder structure.

ThomasBader_1-1748801202260.png

Now I'm getting 64 fatal errors.

ThomasBader_2-1748801278938.png

I also tried generating a TouchGFX GUI code, and now I'm getting this error.

ThomasBader_3-1748801385434.png

I tried solving it as described here: https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/cannot-build-project-with-cubeide-undefined-reference-to/td-p/699214

ThomasBader_6-1748802412866.png
ThomasBader_5-1748802391000.png

The project has already been converted to C++.

I have also added all the Folder

ThomasBader_8-1748803221907.png

I keep getting the same errors. I would really appreciate any help. Thank you very much.

 

 

 

Best answer by GGODA

Hello @ThomasBader ,

 

You have to first generate code throught STM32CubeMX, then generate code through TouchGFX and then you can build in STM32CubeIDE.
When you generate code in STM32CubeMX, mak esure to UNcheck the "generated under root" checkmark :

GGODA_0-1748871293999.png

 

Also, your fodler structure is not really identical to the dual cortex TBS available in TouchGFX Designer.
You can start a project with a dual core such as the STM32H745-dk to see how we implemented TouchGFX on this kind of device.

 

Regards,

2 replies

GGODA
GGODABest answer
Associate II
June 2, 2025

Hello @ThomasBader ,

 

You have to first generate code throught STM32CubeMX, then generate code through TouchGFX and then you can build in STM32CubeIDE.
When you generate code in STM32CubeMX, mak esure to UNcheck the "generated under root" checkmark :

GGODA_0-1748871293999.png

 

Also, your fodler structure is not really identical to the dual cortex TBS available in TouchGFX Designer.
You can start a project with a dual core such as the STM32H745-dk to see how we implemented TouchGFX on this kind of device.

 

Regards,

Associate
June 2, 2025

Thank you so much for your help! It has been incredibly valuable, and now I can finally move forward with my project.

GaetanGodart
Technical Moderator
June 3, 2025

Hello @ThomasBader ,

 

What was the issue? Was "generate under root" checked?

 

Regards,