2023-06-16 01:28 PM
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?
2023-06-20 12:53 AM
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 :
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 :
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 :
Don't forget to regenerate code with STM32CubeMX after modifying something there.
Hope that it helps.
2023-06-20 12:22 PM - edited 2023-06-20 12:44 PM
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
2023-06-20 12:36 PM - edited 2023-06-20 12:39 PM
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 ...
2023-06-20 01:26 PM
cause i understand that initiation and drivers for a display is not an easy thing , i exactly did what was proposed,
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.
2023-06-20 09:33 PM
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.
2023-06-21 11:08 AM
so let me ask something more.
If i understand well if i want to re-edit the gui i have to user touchgfx file and not the .part.
What is problem of adding files and what files are you talking about? If i want to add a library to handle a sensor then i should not use again touchgfx designer and use only the IDE?
Also if i do not add any file at that time can i go to open touchgfx file in designer and then add what ever i want an change the complete setup? Is it going to compile normally again if i hit generate code (of course it is the same if i hit run on target?)
2023-06-21 12:23 PM
Hello.
Please note Yoann's advice to open .ioc file on the stand-alone cubeMX, not in the integrated version in IDE. (Name of ioc differs from project name so it wont open from IDE).
What was the exact problem when you write that last part failed ?
2023-06-22 12:10 AM
Hi , i did not want to open ioc in cubeMX standalone i want to open it in perspective inside IDE so this means that i want to open ioc inside IDE.
When i opened the part file from IDE , it opens the designer but then it was giving errors and one time it was just black as screen. I was under the impression
2023-06-22 07:40 AM - edited 2023-06-22 08:15 AM
Irelevant where yuo open ioc = project is corrupted after regenerate code.
And aroung TouchGFX i say about 3 buttons generate simulate run on target.
Normaly you can use all, except you add files and code that block last two. Only generate then is used .
After generate changes in GUI swith into IDE and build load here.