2020-06-24 12:22 AM
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:
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..
2020-06-24 12:47 AM
I can show you my way, but I do not know if it will help you .
In 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.