2024-07-14 08:04 PM - edited 2024-07-15 02:50 AM
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?
2024-07-15 01:28 AM
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. :smiling_face_with_smiling_eyes:
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:
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):
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 :
If this comment answers your question, I invite you to select it as best answer.
Regards,
2024-09-02 02:15 AM
Hello @yu_jay ,
Have you been able to solve your problem?
Regards,