‎2020-12-16 07:52 AM
recently, I am working on a project with STM32F746 and 9" LCD with GT911 touch panel, everything is working fine except the colors in the LCD appears lighter than expected in TouchGFX design! maybe something wrong with the settings So I uploaded some pictures about LTDC and TouchGFX settings. Any help would be grateful.
Solved! Go to Solution.
‎2021-01-11 06:42 AM
@KnarfB​ @MM..1​ The problem solved. It was due to the lack of one of the TFT bias voltages on the PCB (Vgh). it had to be 17 volts but there was a failure in the boost converter chip, So replaced and now the LCD works correctly.
Thanks for your efforts guys.
For those who have the same issue:
1-Double check the TFT voltage biases (Vcom-Vgh-Vgl-AVdd-...).
2-if the bias voltage chips have an EN pin, make sure to enable the IC's first.
3-if there is the external ram (FMC), make sure to configure it correctly and double-check the color frame buffer in cubeMX to be correct (mine is 0xC0000000).
‎2020-12-16 08:22 AM
I see you setup LTDC as RGB888 display, have you realy 24 color pins on MCU connected to LCD ?
When yes and you have amount in external ram i recommend use RGB888 for framebuffer too and same TouchGFX.
‎2020-12-16 09:02 AM
@MM..1 yes, I connected RGB888 pins of LCD to the STM32 MCU and it has 256Mbit RAM Chip, actually I experienced some strange issues like flikring when change the color depth to RGB888 So decided to leave it RGB565.
‎2020-12-16 09:18 AM
Some displays have too control interface and before use need send register values about setup, then RG888 in ltdc need set display to same mode.
When you have flik you need better values for pixel clock and porchs.
To check connection for colour bits. LCD need R7-R0 connect to same pins on MCU. And for setup LCD is good start point use color pattern of basic colours.
When your display is setup and connected without failure, then only porchs values vs pixel clock in stm is bad.
‎2020-12-16 09:24 AM
I will check Porchs and Clock on the go friend, let me double check values and get back to you soon8)
‎2020-12-17 01:29 AM
I checked every possible configuration about pixel clock and porches but still no luck :expressionless_face:
‎2020-12-17 04:37 AM
Are you sure that the LCD is of good quality? I think you are in Iran. If so don't trust the product that you have bought so far.
‎2020-12-17 08:25 AM
How is your PCLK
and for start with LCD turn off TouchGFX (in main comment out rtos start) and only fill framebuffer memory in main after init ltdc .
Fill with one color coded as you set ltdc framebuffer type. If 565 the simply use
memset ((uint16*)FB,0xFFFF, widthxheight); //WHITE disp
memset ((uint16*)FB,0xF800, widthxheight); //RED disp or 00F8
‎2020-12-26 02:19 AM
@MM..1​ still have the problem, maybe it is an LCD problem :\, I don't have any other LCD around to test if it is the LCD problem or not, but will check and inform the community later on.
‎2020-12-26 07:34 AM
Which controller chip is on the LCD? Often there are options to display a test pattern for checking the colors. Gamma correction can also be an issue. As MM..1 suggested: start filling the frame buffer with simple bit patterns, first 0x0000 check, 0x0001 check, 0x0002, and so on and check if the colors meet your expections of what should be displayed.
hth
KnarfB