cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4P5, CubeIde 1.3.1/TouchGfx 4.13.0 and RGB222 issue

andrea venturi
Associate III

hello,

i'm trying to setup a CubeIde prj for a Nucleo-STM32L4P5 board where i'd like to test TouchGfx in a light 320x240 RGB222 with just "embedded RAM" for framebuffer.

I'm facing an error setting up the CubeMx .ioc basic config, a clash between TouchGFX sw params and the LTDC setting. as you can see there's a dependancy on LTDC that's not satisfied and the error is: "Unsupported LTDC pixel format, RGB565 and RGB888 are supported".

see the shot below:

0693W000001rMjXQAU.png

is the RGB222 not supported "out of the box" currently?

may i need to "fake it" on the LTDC side configuration as a RGB565 and then "hijacking" most of the "color" pins for other different tasks (with different AF/alternate functions?)

mabe there's documentation somewhere, but my Google-fu failed on me..

1 REPLY 1
Breeze1
Associate III

I can show you my way, but I do not know if it will help you .

0693W000001rMrMQAU.jpgIn LTDC_init() you have to set pix format like this

 pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_L8;

You also have to config the LTDC CLUT to make color right.

And in this way ,you only have 64 colors instead of 256 colors.

But in this way , you have to refresh screen by your self.

If you are new to Touch Desinger ,I do not suggest you do so.

It took me almost two weeks to fix all the problem.