Skip to main content
Jtron.11
Senior
March 27, 2025
Solved

Modify timings for different display using TouchGFX Designer

  • March 27, 2025
  • 1 reply
  • 800 views

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.

Best answer by GaetanGodart

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,

1 reply

GaetanGodart
GaetanGodartBest answer
Technical Moderator
March 27, 2025

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,

AMars.4
Associate III
March 27, 2025

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.

GaetanGodart
Technical Moderator
March 28, 2025

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,