cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745 on 16 depth

BAl K.1
Associate III

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?

3 REPLIES 3
Osman SOYKURT
ST Employee

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 ;)

Osman SOYKURT
ST Software Developer | TouchGFX

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 Employee

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

Osman SOYKURT
ST Software Developer | TouchGFX