Need help getting RA8875 LCD working with LVGL library
Posted: Sun May 07, 2023 2:39 am
Here is my setup:
Windows 10
VSCode 1.78.0
ESP-IDF 5.0.1
ESP32-DEVKITC-VE (has ESP32-WROVER-E module on it)
BuyDisplay.com ER-TFTM090-2, 9-inch LCD module with RA8875 controller, operating from 3V3.
LVGL -Light and Versatile Embedded Graphics Library for ESP32 from here https://github.com/lvgl/lv_port_esp32
Connections:
ESP32-DEVKITC-VE ER-TFTMO90-2 LCD MODULE
SS (GPIO5) to SCS (pin 5)
MOSI (GPIO23) to SDI (pin 7)
MISO (GPIO19) to SDO (pin 6)
SCK (GPIO18) to SCLK (pin 8)
GPIO21 to RST (pin 11)
The above SPI connections are for VSPI (SPI3) of the ESP32.
The problem I am having is getting LVGL configured to use the above connections. Using menuconfig, I have selected the RA8875 as the controller and VSPI as the SPI interface. I also have full-duplex operation configured (not sure what LVGL really wants). But I always get the following configuration reported in the terminal upon start-up:
I (40) lvgl_helpers: Initializing SPI master for display
I (50) lvgl_helpers: Configuring SPI host VSPI_HOST (2)
I (60) lvgl_helpers: MISO pin: -1, MOSI pin: 13, SCLK pin: 14, IO2/WP pin: -1, IO3/HD pin: -1
I (60) lvgl_helpers: Max transfer size: 64000 (bytes)
I (70) lvgl_helpers: Initializing SPI bus...
I (80) disp_spi: Adding SPI device
I (80) disp_spi: Clock speed: 40000000Hz, mode: 0, CS pin: 15
The above pin assignments are for HSPI, not VSPI.
What else do I need to configure to get the VSPI pins to be used instead of the HSPI pins?
Thanks for any help.
Windows 10
VSCode 1.78.0
ESP-IDF 5.0.1
ESP32-DEVKITC-VE (has ESP32-WROVER-E module on it)
BuyDisplay.com ER-TFTM090-2, 9-inch LCD module with RA8875 controller, operating from 3V3.
LVGL -Light and Versatile Embedded Graphics Library for ESP32 from here https://github.com/lvgl/lv_port_esp32
Connections:
ESP32-DEVKITC-VE ER-TFTMO90-2 LCD MODULE
SS (GPIO5) to SCS (pin 5)
MOSI (GPIO23) to SDI (pin 7)
MISO (GPIO19) to SDO (pin 6)
SCK (GPIO18) to SCLK (pin 8)
GPIO21 to RST (pin 11)
The above SPI connections are for VSPI (SPI3) of the ESP32.
The problem I am having is getting LVGL configured to use the above connections. Using menuconfig, I have selected the RA8875 as the controller and VSPI as the SPI interface. I also have full-duplex operation configured (not sure what LVGL really wants). But I always get the following configuration reported in the terminal upon start-up:
I (40) lvgl_helpers: Initializing SPI master for display
I (50) lvgl_helpers: Configuring SPI host VSPI_HOST (2)
I (60) lvgl_helpers: MISO pin: -1, MOSI pin: 13, SCLK pin: 14, IO2/WP pin: -1, IO3/HD pin: -1
I (60) lvgl_helpers: Max transfer size: 64000 (bytes)
I (70) lvgl_helpers: Initializing SPI bus...
I (80) disp_spi: Adding SPI device
I (80) disp_spi: Clock speed: 40000000Hz, mode: 0, CS pin: 15
The above pin assignments are for HSPI, not VSPI.
What else do I need to configure to get the VSPI pins to be used instead of the HSPI pins?
Thanks for any help.