Skip to main content
Woula
Associate II
April 17, 2020
Solved

How to definitely integrate a TouchGFX application to STM32CubeIDE ?

  • April 17, 2020
  • 16 replies
  • 3131 views

Hi,

I'm trying to create a simple TouchGFX Application, that can handle hardware components, such as GPIO. Many tutorials exist but i haven't seen yet an official walkthrough from ST. Maybe, i haven't searched enough. So , is there any tutorial or documentation that explain the right procedure, even the setup for custom hardware design.

Further informations :

I have an STM32F429I-DISCO. I use STM32CubeIDE 1.1.0 and TouchGFX 4.13.0

Thanks

This topic has been closed for replies.
Best answer by Martin KJELDSEN

We don't do recommendations for hardware design. TouchGFX Generator from CubeMX can generate a CubeIDE project for you. And CubeIDE projects exist for all the Application templates available from the designer, even the 429I-DISCO. This will have the setup and integration you require to develop TouchGFX applications for that board.

Please check the documentation on support.touchgfx.com.

/Martin

16 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
April 20, 2020

We don't do recommendations for hardware design. TouchGFX Generator from CubeMX can generate a CubeIDE project for you. And CubeIDE projects exist for all the Application templates available from the designer, even the 429I-DISCO. This will have the setup and integration you require to develop TouchGFX applications for that board.

Please check the documentation on support.touchgfx.com.

/Martin

Fabrizio1
Visitor II
April 26, 2020

Hi Woula

I'm having the same problem, I think the best way to integrate is to create a project from TouchGFX and then in CubeIDE "File->Open Projects from File System" and select the folder "STM32CubeIDE" inside the TouchGFX's project. I don't know if this is the right way, but I think is the easiest.

I was able to call virtual functions trigered by touch buttons to change the alpha, size, color, etc of elements on the screen, but i can't toggle the LED on the board by pressing a touch button or call a virtual function trigered by the fisical button.

Why are you using STM32CubeIDE 1.1.0?

I'm using an STM32F429I-DISC1, STM32CubeIDE 1.3.0 (I think is the latest version) and TouchGFX 4.13.0

If you find any information that can help with the GPIO interaction please share.

Fabrizio

Woula
WoulaAuthor
Associate II
April 29, 2020

Hi Fabrizio,

Thanks for the contribution, yes it is an easy way for sure. Now i don' t really know if i can do the same with a board with a different MCU.

I haven' t updated my IDE yet.

Yes, if i have a solution about the GPIO interaction i will share it.

Regards

chaaalyy
Senior II
April 26, 2020

Hi :)

This video is for the F746 discovery, but basically it shows, how to get the stuff up and running quickly. Of course, you have to change to a) actual software versions and b) your board ;)

https://www.youtube.com/watch?v=eiPtQp4chG0

/Charly

RK_SAG
Visitor II
April 29, 2020

Hallo Charly, hallo Martin,

I followed the steps in the Video using an STM32H7B3I-Disco Board.

Everything works Fine, but I do Not get the ioc file Imported / Shown in the CubeIDE file structure.

Did I Miss something? Project Compiler, Fan bei uploaded and debugged, but if I warnt to make changes i.e. GPIO Settings, i would habe to do this in Code.

Thank you and best regards

Rudi

scottSD
Senior III
April 28, 2020

@Martin KJELDSEN​ 

There is something strange when creating a project in TouchGFX Designer and then doing a "File->Open Projects from File System" in Stm32CubeIDE.

The Core directory and the TouchGFX directory are NOT included in the Project Explorer of Stm32CubeIDE:

0693W000000WbkpQAC.png

Why is this?

Does this mean one must edit the Core files and the TouchGFX externally and not in this project?

I also notice that trying to Right Click > Go to Declaration on a variable does not take you to the declaration if that file is not part of the project.

What is the proper way to create/import/open a project in Stm32CubeIDE that was created in TouchGFX Designer?

Fabrizio1
Visitor II
April 28, 2020

Hi Scott,

You can find some of the core files in Application->User in CubeIDE, there are the files generated by TouchGFX as well and you can edit the files from here. I think these are shorcuts to the actual files.

Which variable are you trying to access?

I didn't find the proper way to do it yet, but I think this way is working for me.

There is a webinar about Hardware integration, but it's really complicated to follow. I'm still struggling to get an interaction triggered by an external button.

Link to the webinar: https://youtu.be/jQO7zhX0e0Q

Fabrizio

Martin KJELDSEN
Principal III
April 28, 2020

Let me know what you're having issues with and i'll help.

scottSD
Senior III
April 29, 2020

@Martin KJELDSEN​ 

I created a new thread to ask my particular question:

https://community.st.com/s/question/0D53W000005qhKDSAY/why-isnt-project-structure-started-from-a-touchgfx-application-template-the-same-as-one-started-from-stm32cubeide

And I am not able to delete my hi-jacking posts above as I do not have rights to do so.