Skip to main content
EAndr.2
Associate II
October 19, 2022
Question

How can I add a TouchGFX GUI to an already existing project?

  • October 19, 2022
  • 1 reply
  • 3186 views

I managed to create a GUI in TouchGFX and compile it as a standalone project.

Now, the GUI should be integrated in an existing project that is already up and running (it has some paramters which are statically defined before compilation).

The sliders are meant to be connected to virtual functions which in turn call methods in the main application to edit those parameters dynamically. So, I still want to preserve all the functionalities and structure of my main application and simply add a way to dynamically alter the parameters through the touch screen.

Thanks (I'm on STM32H735G-DK) :)

This topic has been closed for replies.

1 reply

MM..1
Chief III
October 19, 2022

If your primary project is generated in MX , then simply add software package TouchGFX and import GUI. But custom drivers and gui func need manual copy.

If not MX or IDE wizard ioc project, add TGFX is more complicated...

EAndr.2
EAndr.2Author
Associate II
October 19, 2022

I don't think the project was developed in MX. We just use CubeIDE. I tried to look for that "import GUI" setting, but couldn't find it. Fundamentally, I just need a way to edit parameters dynamically, it doesn't matter how it's done. I though TGFX was going to be an easy-ish solution, but it doesn't look like it. Any suggestions to achieve my goal?

MM..1
Chief III
October 19, 2022

CubeIDE have MX plugin. Have your project ioc file ... open it and add software package

After you add package TGFX added is empty template. Open it and in Designer menu search Import GUI.