Skip to main content
KM L.1
Associate III
August 31, 2020
Question

Integrating Parallel RGB LCD with STM32 controller

  • August 31, 2020
  • 16 replies
  • 3065 views

As we have Parallel RGB LCD and we tried integrating with STM32H743 controller and using touchGFX we are trying to display the image but nothing is displaying on the LCD so what may be the issue?

This topic has been closed for replies.

16 replies

Martin KJELDSEN
Principal III
August 31, 2020

How did you create the project? What have you tried to do so far to find the issue? Hint: The TouchGFXHAL has LTDC interrupt handlers that will drive TouchGFX forward- are you hitting those? Does the display work outside of TouchGFX?

/Martin

KM L.1
KM L.1Author
Associate III
September 1, 2020

Created project using STM32cubeIDE and also LTDC interrupt handlers has been taken care.

It works outside of TouchGFX.

KM L.1
KM L.1Author
Associate III
September 1, 2020

when I run the code , its not entering into the  hal.taskEntry();

MM..1
Super User
September 1, 2020

Generated code dont have call to touchGFX process start. You need add to default task or create new task. I preffer add

void StartDefaultTask(void const * argument)

{

 /* USER CODE BEGIN 5 */

MX_TouchGFX_Process();

 /* Infinite loop */

 for(;;)

 {

  osDelay(1);

 }

 /* USER CODE END 5 */ 

}

KM L.1
KM L.1Author
Associate III
September 1, 2020

I'm able to display the LCD as i made a mistake in DCLK frequency.

But my blue button is displaying as red button .

Martin KJELDSEN
Principal III
September 1, 2020

If you make it blue, it will probably be shown as red. Seems like R, G and B are invterted in your configuration?

KM L.1
KM L.1Author
Associate III
September 1, 2020

RGB configuration exactly where?

Martin KJELDSEN
Principal III
September 1, 2020

Maybe your LTDC GPIO configuration is reversed compared to what your screen is capable of. You could try making your box blue to see. And green.

MM..1
Super User
September 1, 2020

Exactly you can have more mistakes:

  1. framebuffer address need be ltdc and touch same.
  2. RGB888 vs RGB565 setings must be correct
  3. display need initial setup registers properly, some displays can in registers swap RGB BGR mode
  4. GPIO RGB as Martin write must be connected to RGB lines on display...
KM L.1
KM L.1Author
Associate III
September 1, 2020

I looked into GPIO configuration and it's correct.. ​

Then I will look into this framebuffer address .

Thank You​

KM L.1
KM L.1Author
Associate III
September 2, 2020

Is that possible to change the RGB configuration to BGR in STM32cubeMX or touchGFX?