cancel
Showing results for 
Search instead for 
Did you mean: 

How to Migrate touchgfx project from 800 x 480 to 1024 x 600

Shiv09
Associate III

Hello All,

 

I have created one project which is working on STM32H747i- Eval board with 800 x 480 resolution, now the project has to be migrated to 1024 x 600 resolution for larger display.

I have migrated the backend code but now the Screen resolution is still 800 x 480 and the widgets are aligned to work with it.

Now how shall I configure the project to 1024 x 600, I mean is there any to do it instead of manually adjusting the screens and widgets ?

If there is any effective and better solution kindly do let me know ?

 

Regards,

Shiv

2 REPLIES 2
PeterVang
ST Employee

Hello Shiv09,

It is normally very easy to change the resolution of a TouchGFX project when it is using LTDC, but it is unfortunately a bit more complicated for the board template project you have based your project on.

Normally, the resolution should just be changed in STM32CubeMX by setting the size of LTDC->Layer0 to the desired resolution. When regenerating code, this will both change the hardware setup code and configure the TouchGFX project to the new resolution.

The display on the STM32H747i-Eval board is unfortunately a tricky to use and our template project for this board is therefore quite complicated. It is therefore also more complicated to change the resolution. If you already updated the "hardware code" to work with the new display, you just need to configure TouchGFX to the correct width and height. This should be done in your STM32CubeMX project under the Middlewares->X-CUBE-TOUCHGFX tab. After regenerating code in CubeMX, the TouchGFX Designer canvas should automatically change to the new resolution.

TouchGFX designer does not modify your GUI screens when changing the resolution, so you manually need to scale and move your widgets to fit the new resolution,

Best regards,

Peter

Hello @PeterVang 

 

Thanks for the quick answer, Yes its difficult and I can understand the migration would not be as straight forward as it looks. Will update the Screens and the related widgets manually.

Though it would be helpful for future to have some feature for migration.

 

Regards,

Shiv