Skip to main content
KM L.1
Associate III
Aug 31, 2020 5:20 AM UTC
Question

Integrating Parallel RGB LCD with STM32 controller

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
Aug 31, 2020 3:16 PM UTC

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
Sep 1, 2020 4:00 AM UTC

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
Sep 1, 2020 6:53 AM UTC

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

MM..1
Super User
Sep 1, 2020 7:17 AM UTC

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
Sep 1, 2020 11:47 AM UTC

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
Sep 1, 2020 12:00 PM UTC

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
Sep 1, 2020 12:36 PM UTC

RGB configuration exactly where?

Martin KJELDSEN
Principal III
Sep 1, 2020 1:26 PM UTC

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
Sep 1, 2020 4:11 PM UTC

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
Sep 1, 2020 6:44 PM UTC

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
Sep 2, 2020 7:18 AM UTC

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