cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX2 with TouchGFX

MatheusNifocci77
Associate II

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PeterVang
ST Employee

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:

PeterVang_2-1777015279558.png

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

 

View solution in original post

4 REPLIES 4
STackPointer64
ST Employee

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,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.

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?

PeterVang
ST Employee

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:

PeterVang_2-1777015279558.png

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

 

PeterVang
ST Employee

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.