cancel
Showing results for 
Search instead for 
Did you mean: 

How can I modify the framebuffer memory size?

yu_jay
Associate

In TouchGFX version 4.18.0, after modifying the Designer output for the screen and compiling with STM32CubeIDE, the screen crashes and restarts due to having too many screen elements (buttons, text, images). It’s suspected that this is caused by insufficient framebuffer memory, and it has been confirmed that it is not a logical issue in the program. By deleting some screen elements, the display works normally. How can I modify the framebuffer memory size?

 

1 REPLY 1
GaetanGodart
ST Employee

Hello @yu_jay ,

 

Please, for your following message, write in English so that I and the rest of the community can understand what you say. 😊

 

I Google translated your message.
It seems you have memory issues crashing and restarting your board due to too many widgets on a specific screen and removing some of those widgets makes the design work.
It would help me to know what widgets you remove for it work again.
What hardware you are using?
Why are you using TouchGFX 4.18 and not the most recent version? Can you upgrade to the most recent version?
Also, what happens if you start the GUI on a simple screen and then switch to the screen with too many widgets?
Finally, when the board restarts, does it works after or does it constantly restart?

 

At the top right of TouchGFX Designer, you can increase the Canvas Buffer:

GaetanGodart_0-1721031533296.png
This is used for lines, boxes, SVG images etc but not for all the widgets.

Another solution would be to increase the TouchGFX heap in the linker script (in the "gcc" folder, the file with the LD extension):

GaetanGodart_1-1721031966635.png
You can increase the minimum heap and stack from there.

A final solution is to increase the FreeRTOS stack size (if you use FreeRTOS) in the .ioc file :

GaetanGodart_2-1721032075607.png

 

If this comment answers your question, I invite you to select it as best answer.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)