Skip to main content
Bhanu
Associate II
February 27, 2023
Solved

How to Interfacing SPI-RGB LCD in stm32F7508DK

  • February 27, 2023
  • 3 replies
  • 9771 views

Hi,

I'm to SPI in stm32,I want to interface LCD with SPI RGB i need your support to provide SPI intialzaton code for LCD WF40ESWAA6DNN0 480*480 resolution.

Thanks

This topic has been closed for replies.
Best answer by Imen.D

Hello @Bhanu,

You can start from STM32CubeMX where you configure your SPI and LCD peripherals and generate the initialization code. 

Please have a look at this AN4861 Application note and you can follow this Article to configure the LTDC peripheral.

You can refer to the one of LCD examples under the STM32CubeF4 package, which can help you to develop your application:

Imen

3 replies

Imen.DBest answer
Technical Moderator
March 5, 2023

Hello @Bhanu,

You can start from STM32CubeMX where you configure your SPI and LCD peripherals and generate the initialization code. 

Please have a look at this AN4861 Application note and you can follow this Article to configure the LTDC peripheral.

You can refer to the one of LCD examples under the STM32CubeF4 package, which can help you to develop your application:

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
Bhanu
BhanuAuthor
Associate II
March 6, 2023

Hi @Imen DAHMEN (ST Employee)​,

i have already implemented LTDC code for RGB LCD but now i want you to provide initial code to initialise SPI for display WF40ESWAA6DNN0 480*480 resolution.

Bhanu

Bhanu
BhanuAuthor
Associate II
March 8, 2023

hi,

waiting for your reply,

i'm sending comands and data using HAL_SPI_Transmit() but still i im not able to see any color in display for your reference im attaching the display data shet please have a look and provide spi intialzation code to send data through out RGB

please find the attached display data sheet

Bhanu
BhanuAuthor
Associate II
March 6, 2023

Hi @Imen DAHMEN​ ,

If possible give reply ASAP

thanks

Technical Moderator
March 15, 2023

Hello @Bhanu​ ,

Based on the datasheet attached, it is mentioned WF40ESWAA6DNN0 is without control board interface; you may need to set up your hardware first. No SPI Interface is embedded.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Bhanu
BhanuAuthor
Associate II
March 15, 2023

Hi @F.Belaid​ ,

thanks for the reply ,

if you looking to  WF40ESWAA6DNN0 datasheet general specifications they have given driver IC ST7701S.

in this replay I'm attaching that ST7701S datasheet please check it help me to clear my issue ASAP .

Thanks

Technical Moderator
March 16, 2023

Hi again @Bhanu​ 

In order to interface with the WF40ESWAA6DNN0 display, you will need to communicate with the ST7701S driver IC through its SPI interface to send commands and data to control the display's pixels.

Here is an example STM32CubeF7/stm32f7xx_nucleo_144.c at f8bda023e34ce9935cb4efb9d1c299860137b6f3 · STMicroelectronics/STM32CubeF7 (github.com), it may need some changes to adapt your driver IC. Here is a set of functions STM32CubeF7/st7735.c at c7c5ec99c7482ea8bcdbf0a869c930af4547088f · STMicroelectronics/STM32CubeF7 (github.com) needed to drive the * ST7735 LCD. It is up to the user to get inspired and customize the code.

Thank you for your understanding.

Firas

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL