cancel
Showing results for 
Search instead for 
Did you mean: 

Modify timings for different display using TouchGFX Designer

Jtron.11
Senior

Hi all,

I used another display with exactly the same resolution with my display for my DK.  If I change the display setup manually for different display's clock settings, I am able to display the image correctly.  Is there a way for me to modify the display's related settings using TouchGFX Designer 4.24.2?

Secondly, once the code is generated by the Designer.  I can modify the GPIO/Peripheral/Timers using CubeMX, but once the code is generated by CubeMX, there are folder and files related to TouchGFX were deleted.  I had to go back to TouchGFX and re-generated the code in order for the deleted files to reinstate.

What is the correct process should I follow in order for not losing files from generated by TouchGFX Designer?

Thank you so much for all of your helps.

1 ACCEPTED SOLUTION

Accepted Solutions
GaetanGodart
ST Employee

Hello @Jtron.11 ,

 

Why don't you just make a new TBS for that new display?

Simply keep your current project for your current display and create a new project for the new display, make your changes there so that you have one project working for the old display and one project working for the new display.

 

If you want to make a change of GPIO pins or anything else related to hardware, the correct steps are to first do your change on STM32CubeMX, then click generate in STM32CubeMX, then open your TouchGFX project and generate code from TouchGFX Designer as well.

 

Also, technically, you don't loose the "generated" files and folder because they are generated and will be re-generated eveytime you try to run the simulator, flash the board from TouchGFX Designer or simple as to generate code.

 

I hope this answers your question!
If this comment solves your problem, I invite you to select it as "best answer".

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

View solution in original post

8 REPLIES 8
GaetanGodart
ST Employee

Hello @Jtron.11 ,

 

Why don't you just make a new TBS for that new display?

Simply keep your current project for your current display and create a new project for the new display, make your changes there so that you have one project working for the old display and one project working for the new display.

 

If you want to make a change of GPIO pins or anything else related to hardware, the correct steps are to first do your change on STM32CubeMX, then click generate in STM32CubeMX, then open your TouchGFX project and generate code from TouchGFX Designer as well.

 

Also, technically, you don't loose the "generated" files and folder because they are generated and will be re-generated eveytime you try to run the simulator, flash the board from TouchGFX Designer or simple as to generate code.

 

I hope this answers your question!
If this comment solves your problem, I invite you to select it as "best answer".

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Just to jump in and ask... when would be the best time to create a TBS?

I currently have a project for the STM32U5G9J-DK2 which I have modified to allow my custom LCD to be used, if I create the TBS will it basically package up everything in that project at the current time?

Maybe you have a link to further information on this?

Many thanks.

Hi @GaetanGodart ,

Thank you for your suggestions.  Reason I want to modify the display's related timing on the Designer so I can download and review my GUI on my eval board with the new display right away.  Without the proper timing setup, my new display will not be able to display the image correctly like the default display that came with the DK.

Hello @AMars.4 ,

 

You create a TBS when you need a hardward setup that works with TouchGFX.
You already did this because you have STM32U5G9J-DK2 + custom LCD (even though you started from a working TBS, you modified it to your needs).
So now you can either keep that configuration saved somewhere (hopefully git it), or you can pack this configuration to have it available in Designer by following this guide .

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hello @Jtron.11 ,

 

Ok so you have a discovery board with a display and you have another display that is the same resolution as the discovery board's display and you want to test the GUI that you create on the discovery board before you have it on the custom board.

To do so, I would simply create my GUI on the discovery board and then, once I have my working project with the other display, I would simple go in Edit => Import => GUI and select the .touchgfx file of my GUI. This will import the GUI to any hardware that you want (it is best if it is the same resolution which seems to be the case for you).

You could also change the timings (but I would rather do that in the main.c) but it would be harder and I don't really see the point.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Understood, thank you.

The GUI import feature you mentioned looks useful and would save a lot of time when I eventually create a project for the custom hardware.

Kind Regards.

@GaetanGodart ,

So sorry for riding the tail of this chat.  May I ask if you have any suggestion or experiences how to handle the custom image on different display?

So the DK came with 5.0" 800x480, I have a custom image circle and it display perfectly fine on 5.0" screen.  When I switch to 7.0" also 800x480 and adjust the clock, and the image display on the screen, but my original image that display a circle on 5.0" screen now got squeeze on the vertical direction (on 480 lines)/(or stretch on the 800 pixels direction) so the circle now look oval.

Is there any way I can make perfect circle on the 7.0" screen? 

Hello @Jtron.11 ,

 

No problem! :)

your image is a png?
In TouchGFX Designer it looks fine?
How does it looks in the simulator (both for the DK 5" and the custom 7" board)?

This question should probably be a different thread.
I invite you to select the comment that helped you the most as "best answer" and to create a new thread with the question above.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)