cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a TouchGFX Project with the STM32H7B3I-DK and write usercode with CubeIDE?

MMüll.6
Associate III

I have start with TouchGFX, select the demo board and generate the code. Simulator and download works.

But now, when I want open the project with CubeIDE, the first is, the project is completly empty. Then when I start a new project with the existing IOC file, then CubeIDE generate a seperate folder with other files, but there are not the auto generates files from TouchGFX visible.

What is wrong? Please write me step by step how can I start my own project with STM32H7B3I-DK.

Thank you very much, Markus.

1 ACCEPTED SOLUTION

Accepted Solutions

Nothing is missing :grinning_face_with_sweat:

I opened your project you shared, and I find all the files.

0693W00000UnENWQA3.pngI opened TouchGFX Designer, I regenerate code from there. Then in STM32CubeIDE, I cleaned the project (right click, "Clean Project"), then I built it (right click, Build Project"). No errors, no warning during compilation. So the project is working.

0693W00000UnEPNQA3.png 

If you can't find a specific resource file in the tree, try to do a global search by its name like this :

0693W00000UnEOFQA3.png0693W00000UnEOKQA3.png 

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX

View solution in original post

11 REPLIES 11
KDJEM.1
ST Employee

Hi @Markus Müller​ ,

I recommend that you use the STM32CubeMx to create the TouchGFX project.

For that, I advise you to follow properly the steps as described in this MOOC.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Osman SOYKURT
ST Employee

Hello MMüll.6,

Can you give more information about your configuration please ?

  • Which version of TouchGFX Designer do you use ?
  • Which version of STM32CubeIDE do you use ?

What do you mean by demo board ? Do you use a TouchGFX board setup with empty canvas or a Example/Demo that we provide ?

Is it possible for you to provide screenshots of your issue ?

I tried on my side to create a new empty project with the STM32H7B3I-DK and it went fine, I see it on STM32CubeIDE, it's not empty. I use TouchGFX Designer 4.20.0 and ST32CubeIDE 1.9.0

0693W00000UnCblQAF.png 

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
MMüll.6
Associate III

@Osct

TouchGFX 20.0, CubeIde 1.10.1, CubeMX 6.6.1 (the newest)

I have try this 3 ways with "Demo Board configuration STM32H7B3I-DK":

1) Start with CubeMX:

  • There are many files generated.
  • Build with CubIde has thousands of errors
  • After 2 houers of fixing, I try all into trash.
  • Not working

2) Start with TouchGFX:

  • Simulator works directly
  • Download with TocuGFX works
  • Open CubeIDE fails, no Project, then import the projekt with IOC file
  • In CubeIDE no TouchGFX files visible
  • CubeIDE not generate code
  • Not working with usercode

3) Start with CubeIDE:

  • Generate a new project with the demo board configuration
  • The complete display configuration is missing in the IOC file
  • Start TouchGFX, the files are generated
  • TouchGFX Simulator works, a test textarea "Hello" inserted, it is showing.
  • TouchGFX Download button is disabled
  • Download by CubeIDE: The dispaly shows nothing, not working.

This are three possible ways with different results, but all not working.

Please correct this 3 ways, that this all works with the same result.

Currently, there is a verv very big bug inside the auto code generator. Three ways with three different results from one company is not good.

Thank you very much.

M.Müller

In this video you can only see how to create a new project, but not what you have to do to make the demo board work (incl. touch driver) and what you have to do to make it work. Exactly where it gets interesting is the end of the video.

It would be helpful if there was a video how to start with a ST demo board completely, incl. download and e.g. a button in TouchGFX programmed and you see how a LED goes on and off.

Thank you very much for help

Hello again MMüll.6,

I do the 2nd way always, but I think you're missing one step;

- Start with TouchGFX:

  • Simulator works directly
  • Download with TouchGFX works
  • GENERATE CODE WITH TOUCHGFX DESIGNER (press F4)
  • Open CubeIDE : it should work.0693W00000UnDLPQA3.png
  • All the TouchGFX generated files & user code are visible 0693W00000UnDN1QAN.png

Can you try that ?

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX

I have generate the code with TouchGFX designer:

I have generate the code with TouchGFX designer:

0693W00000UnDSpQAN.pngIn the file explorer are the files, including the TouchGFX folder:

0693W00000UnDTTQA3.pngOpen the file ".project":

0693W00000UnDTdQAN.pngBut in this view I missing all TouchGFX files.

Here the auto generated code in attachment.

Thank you very much for help.

/Markus

Please, can you generate a new project with the demo board "STM32H7B3I-DK" for TouchGFX and CubeIDE with the name "DisplayH7".

Then I can download this, it will be very nice.

Thank you very much.

/Markus

Nothing is missing :grinning_face_with_sweat:

I opened your project you shared, and I find all the files.

0693W00000UnENWQA3.pngI opened TouchGFX Designer, I regenerate code from there. Then in STM32CubeIDE, I cleaned the project (right click, "Clean Project"), then I built it (right click, Build Project"). No errors, no warning during compilation. So the project is working.

0693W00000UnEPNQA3.png 

If you can't find a specific resource file in the tree, try to do a global search by its name like this :

0693W00000UnEOFQA3.png0693W00000UnEOKQA3.png 

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX