Let me first welcome you to the STM32 Community :)
To better answer you I need more details in your use case and what is the hardware using.
You'll maybe want to review LCD examples within STM32CubeXX MCU package that will help you on your project.
So, you can refer to the working example in the STM32Cube package relevant for your device.
For example: STM32Cube_FW_F4_V1.26.1\Projects\STM32469I-Discovery\Examples\LCD_DSI
Have a look to this AN4861 "LCD-TFT display controller (LTDC) on STM32 MCUs" it may help you.
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
If you still need help, please feel free to ask your question in more detail.
If your question is answered, please share your update and close this topic by marking Select as Best.
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
I read the application note AN4861 "LCD-TFT display controller (LTDC) on STM32 MCUs" which can be found on the STM website and I managed to drive the rectangular LCD.