2026-04-22 1:10 PM
Hello everyone,
I’m trying to develop a new project using an STM32C552RET6 with a TFT display.
I’d like to use TouchGFX for this, but I can’t find any instructions in CubeMX2 on how to configure a project as a graphical application.
I saw some examples in TouchGFX Designer using the STM32C5, but I got the impression that the integration was done manually.
So, does anyone know if CubeMX2 has this functionality?
Thanks,
Matheus
Solved! Go to Solution.
2026-04-24 12:27 AM - last edited on 2026-05-11 12:50 AM by Sara BEN HADJ YAHYA
Hello MatheusNifocci77
There is currently no direct integration of CubeMX2 and TouchGFX. Instead you have to manually add TouchGFX to your project by copying and adapting files from another existing similar TouchGFX application. We are currently working on a guide on how to do this. But it will be a "manual" process for now.
I will advice you to start by looking at the NUCLEO-C562 example project available for download in TouchGFX Designer:
You can then either see if you can modify this project to fit your hardware, or you can set up your own project in CubeMX2 and then add TouchGFX by copying the TouchGFX folder from the example project into your project and adapt it.
A "TouchGFX with STM32CubeMX2" article is now available as part of the TouchGFX documentation: https://support.touchgfx.com/docs/development/scenarios/touchgfx-with-mx2. This article is expected to evolve over time, as the integration between the two tools matures.
Best regards
Peter
2026-04-23 7:51 AM
Hello @MatheusNifocci77, and Welcome to ST Community!
You can start by creating the project in TouchGFX Designer and designing your graphical application. After generating it, you can open the .ioc2 file, inspect the configuration, configure other peripherals if needed, and regenerate the project. Be sure to review the available examples as references.
Best regards,
2026-04-23 12:26 PM
Hello StackPointer,
Thank you for your attention, but I couldn’t find the option to select TouchGFX as middleware in STM32CubeMX2, as in CubeMX, where it’s possible to configure the project as a graphical application.
Currently, only FreeRTOS is available as middleware in CubeMX2.
Do you know when this option will be available in CubeMX2?
2026-04-24 12:27 AM - last edited on 2026-05-11 12:50 AM by Sara BEN HADJ YAHYA
Hello MatheusNifocci77
There is currently no direct integration of CubeMX2 and TouchGFX. Instead you have to manually add TouchGFX to your project by copying and adapting files from another existing similar TouchGFX application. We are currently working on a guide on how to do this. But it will be a "manual" process for now.
I will advice you to start by looking at the NUCLEO-C562 example project available for download in TouchGFX Designer:
You can then either see if you can modify this project to fit your hardware, or you can set up your own project in CubeMX2 and then add TouchGFX by copying the TouchGFX folder from the example project into your project and adapt it.
A "TouchGFX with STM32CubeMX2" article is now available as part of the TouchGFX documentation: https://support.touchgfx.com/docs/development/scenarios/touchgfx-with-mx2. This article is expected to evolve over time, as the integration between the two tools matures.
Best regards
Peter
2026-05-06 11:28 PM
A "TouchGFX with STM32CubeMX2" article is now available as part of the TouchGFX documentation: https://support.touchgfx.com/docs/development/scenarios/touchgfx-with-mx2. This article is expected to evolve over time, as the integration between the two tools matures.