Skip to main content
Kyrpav
Associate III
June 16, 2023
Question

stm32f769 test project issue

  • June 16, 2023
  • 9 replies
  • 2495 views

I am new and trying to learn touchgfx and stm32. I have stm32f769 disco. and i am want to ask 2 things.

First i tried to make project using the relative template and it seems that i worked, i placed just a button and it works normally. Then i tried to open the project from CubeIDE but after compilation i get black screen .

My second try is about the tutorial in documentation, the proposal is to use from cubemx a template setup for the board. In this case from Cubeide when you create project for the board then ltdc has issues dspi has also and it does not work. Also in the documentation you talk only about spi setup which is different then DSPI which probably needs dspihost setup...

https://support.touchgfx.com/docs/development/board-bring-up/how-to/03-display-internal

What it works is if from the cubeide you create the touchgfx example that does not have cubemx file at all so i can not identify easily the complete setup. But from the code they setup several thing with dspihost and ltdc and interrupts

What is the proper order to do things? 

 

 

This topic has been closed for replies.

9 replies

Yoann KLEIN
ST Employee
June 20, 2023

 Hello @Kyrpav,

The easy way to start is to open TouchGFX Designer and select the appropriate TouchGFX Board Setup.

In your case it is the STM32F769I Discovery Kit :

YoannKLEIN_0-1687247191218.png

Then, you can either start a blank application by click on the "Create" button, or navigate to the Examples/Demo tab to start your application with a example project.

After creating the project, it should already contain the basic software and hardware configuration required to make your project run on the board.

If you want to run your project in STM32CubeIDE, you only have to click on the "Generate code" button in TouchGFX Designer :

YoannKLEIN_1-1687247420270.png

You should be able to compile and run your application with STM32CubeIDE after that :)

If you want to change something in your hardware/software configuration, you have to open the .ioc file of your project in STM32CubeMX. For that, you can simply double-click on this file at the root of your project : 

YoannKLEIN_2-1687247558855.png

Don't forget to regenerate code with STM32CubeMX after modifying something there.

YoannKLEIN_3-1687247604271.png

Hope that it helps.

Yoann KLEINST Software Developer | TouchGFX
Kyrpav
KyrpavAuthor
Associate III
June 20, 2023

After exactly what you discribe i get errors it doe not compile or screen i black. Or maybe to be accurate what if i want to edit again the same project in touchgfx.

Imagin the case i make what you propose by placing only one button on screen and then i want to edit the project again. i was opening the .part file (if i remember well) changing things but compile breaks and cause of this i get black screen

MM..1
Super User
June 20, 2023

You little mix defs . Name for bus used on display is DSI. And yes configure and start DSI display isnt simple.

For beginer i see only way use only TochGFX prepared examples. When you step up you can edit in IDE.

Try better write what you do ... how you open project in IDE ...

Kyrpav
KyrpavAuthor
Associate III
June 20, 2023

cause i understand that initiation and drivers for a display is not an easy thing , i exactly did what was proposed,

  • created a project from touchgfx for the specific discovery kit,
  • created code from the touchgfx
  • imported the project in CubeIde
  • edited something in ioc file (cube mx) 
  • generate code and try to run in display
  • opened from IDE .part file to open the designer
  • try to make changes in designer and re-generate code from touchgfx

This last part failed.

Also project name from touchgfx is different from what the IDE wants to see cause of the name of the .ioc file generated.

MM..1
Super User
June 21, 2023

Ok after step 2 add run on target test if all works.
Import how, i use way create empty workspace in IDE then double click .project file in right project folder.
No edit in MX , this dont work and corrupt 50% touchgfx generated projects.
For next edititng no open part file , but touchgfx file (part is recreated from MX ...) 
edit files in IDE and build you can in both systems only if not files add. After new files you can build only in IDE.
Too load only from IDE then. And for discovery with external flash you need config loader...
All your points from 3 up is for advanced users.
And if you need manage ioc , then steps is complete different and more advanced.