cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating Parallel RGB LCD with STM32 controller

KM L.1
Associate II

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?

16 REPLIES 16
Martin KJELDSEN
Chief III

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
Associate II

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

It works outside of TouchGFX.

KM L.1
Associate II

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

MM..1
Chief II

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
Associate II

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

But my blue button is displaying as red button .

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
Associate II

RGB configuration exactly where?

Martin KJELDSEN
Chief III

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
Chief II

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...