Skip to main content
VDuch.11
Associate II
September 30, 2020
Question

TouchGFX on STM32F413H-DISCO Board

  • September 30, 2020
  • 3 replies
  • 4374 views

Is TouchGFX implemented on the 32F413HDiscovery Board? And if yes, how can I implement it? Because I tried in so many ways but either I have nonsenses errors, or I don't have the right screen size, and so it won't compile and run

This topic has been closed for replies.

3 replies

Romain DIELEMAN
ST Employee
October 1, 2020

Hi,

What have you tested for now? How did you start your project?

We have not made a pre configured application template for the STM32F413 disco board, but you can still run TouchGFX on it. You will have to create a project from scratch from CubeMX. We have made a guide in the online documentation to help you through this process.

You can find the schematics and other important document here. You will also find some examples and demos for the F413H disco board in the STM32Cube/Repository/STM32Cube_FW_F4_V1.25.1/Projects folder. Those will help you to configure your CubeMX project. Once you have done this , follow this guide to enable the TouchGFX Generator in order to configure TouchGFX on your platform.

/Romain

VDuch.11
VDuch.11Author
Associate II
October 1, 2020

Hi Romain,

thank you for your fast reply. I already tried this method with STM32CubeIDE and, I don't know why, some files in "TouchGFX" folder return me an error that says "No such file or directory", even though the file in that specific path exist. Moreover, I found on the internet that that could be caused by the fact that you didn't generate the code, but I generated it three times in order to avoid this problem, but it comes anyway.

Can you explain to me why it returns an error like this?

I will attach an image of my console with error, so you can understand better what is my issue

Romain DIELEMAN
ST Employee
October 1, 2020

Yes that error usually appears when you have not generated code from TouchGFX Designer.

You say that you tried this method with CubeIDE, what do you mean by that?

VDuch.11
VDuch.11Author
Associate II
October 1, 2020

What I mean by that is, instead of creating a project with SMT32CubeMX, I created a project with the CubeIDE, and then I added the software package, which is TouchGFX; after that, I build the project and the TouchGFX folder appeared. Then I opened from that folder the TouchGFX project and created a simple UI, and, after generating the code from TouchGFX and then, when I tried to build the project in CubeIDE, it gives me these errors

Romain DIELEMAN
ST Employee
October 1, 2020

Then I suppose the errors come from the configuration. What modifications have you made outside of the additional software package? Are you using FreeRTOS?

Romain DIELEMAN
ST Employee
October 5, 2020

The demos and some examples can be found in your folders under STM32Cube/Repository/STM32Cube_FWF4_V1.25.1/Projects/STM32F413H-Discovery . However there are no TouchGFX projects for this board, only STemWin.

For the include files, if they are in the declaration file then yes it does not make sense :grinning_face_with_sweat: . The steps to enable FreeRtos and to add the process function are necessary but I believe more configuration code is needed. Compare the STM32F412 disco board application template code in the TouchGFX/target to compare the code and see if it helps. Maybe also verify in the documentation if some drivers are missing.

It would be nice if you could put in the new Idea Zone section a question like "It would be nice to have support for the STM32F413 disco board" (or even for all ST kits with displays). This will help us show to the marketing and developer teams the request from customers to have an application template available for TouchGFX :smiling_face_with_smiling_eyes: .

/Romain

DDori.1
Associate II
December 1, 2020

As I have the same problem here, I have started an Idea as suggested by Romain. If interested, please vote.

Idea is called "TouchGFX example for 32F413HDISCOVERY"