Skip to main content
BAl K.1
Associate III
July 3, 2023
Question

STM32H745 on 16 depth

  • July 3, 2023
  • 3 replies
  • 1621 views

Hello, i have stm32h745i for my project but unfortunately the SDRAM itself is not enough to handle my gui program.I use lvgl and squareline studio to make gui. I have thought that maybe if i can reduce the color depth from 32 to 16 will reduce my memory usage. Is it possible?

This topic has been closed for replies.

3 replies

Osman SOYKURT
ST Technical Moderator
July 3, 2023

Hello @BAl K.1 ,

Can I ask you if you have tried using TouchGFX Designer? You mention lvgl and squareline studio, do you know that TouchGFX Designer software also helps you to create your GUI and is natively compatible with all STM32 chips? We provide for the STM32H745i-disco board an entire setup fully optimized for graphics that you can use. We can guide you if you need to change the color depth or the framebuffer strategy but I don't know how far it's compatible with the 2 other tools you mentioned. But I can say that with TouchGFX, we can make it work ;)

ST Software Developer | TouchGFX
BAl K.1
BAl K.1Author
Associate III
July 4, 2023

I have tried TouchGFX and i need some tools from squareline studio that not exist in touchgfx, so i choose touchgfx. basically it is mostly the same. How can i change 32 depth to 16 in touchgfx? what should i change?

Osman SOYKURT
ST Technical Moderator
July 10, 2023

Hello @BAl K.1 ,

In TouchGFX that's pretty simple actually, it uses the Framebuffer Pixel Format you set in the STM32CubeMX project (You need to have the X-CUBE-TOUCHGFX software pack of course).

OsmanSOYKURT_1-1688982219450.png

In the "Config" panel in TouchGFX Designer, you'll see then the Color depth associated to it, and whenever you'll generate code, it will take in account that value.

OsmanSOYKURT_2-1688982371274.png

ST Software Developer | TouchGFX