Page 1 of 14

ESP32-S3 LCD and I2S FULL documentation

Posted: Wed Nov 17, 2021 11:45 pm
by Baldhead
Hi,

I'm migrating a project from esp32 to esp32-s3.

In the esp32 i wrote a i2s lcd driver with the help of @ESP_houwenxiang because some hardware "bugs" and bad documentation.

From what i have read and researched the new i2s module of esp32-s3 is quite different from the i2s module of esp32.

I did not find a decent documentation for the lcd module or the i2s module of the esp32-s3 chip.

I need a full documentation of theses modules, to implement my lcd driver.

@ESP_houwenxiang or @rudi ;-) or someone would help me ?

Thank's.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Thu Nov 18, 2021 3:19 am
by ESP_Sprite
Fyi, wrt the LCD HW, we have a TRM chapter for that, but unfortunately it's not out yet... you can look at the ESP-LCD component in ESP-IDF wrt how to use it, and if you have any more specific questions, feel free to ask them here.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Thu Nov 18, 2021 6:12 am
by Baldhead
Probably one of the doubts will be in relation to the dma of the HW LCD.

Does lcd hw use gdma or have dedicated dma ?

How to set dma in lcd hw to use static ram ?
How to set dma in lcd hw to use spi ram ?

Thank's @ESP_Sprite.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Fri Nov 19, 2021 8:55 am
by ESP_Sprite
It can use GDMA or EDMA, indeed, so you can access stuff on SPI RAM as well. I can't entirely describe the process to init it, but you can look at ESP-IDF to see working source code for the process.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Fri Nov 19, 2021 9:11 pm
by Baldhead
Hi @ESP_Sprite,

Does the esp32-s3 lcd module have any relationship with the i2s module ?
Or are these modules completely separate ?

How do i know this file specifically refers to the HW_LCD of the esp32-s3 chip ?
https://github.com/espressif/esp-idf/bl ... l_io_i80.c

That way espressif make my life too complicated :(

Could you send me the manual for the esp32-s3 lcd module by email ?
Do i need to sign a contract for this ?

Thank's.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Sat Nov 20, 2021 12:59 pm
by ESP_Sprite
In the S3, the modules are entirely separate. I don't think I really can send the docs yet, they're still a work in progress, sorry. I agree that the code is complicated if you want to know how to poke the hardware; that's the price for drivers that are more universal and common on the range...

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Sat Nov 20, 2021 5:30 pm
by Baldhead
@ESP_Sprite,

I really need you to confirm for sure which esp-idf file(s) use the esp32-s3 HW-LCD module ?

This file ?
https://github.com/espressif/esp-idf/bl ... l_io_i80.c

Other files ?

Thank's.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Mon Nov 22, 2021 3:25 am
by ESP_Sprite
The lcd_ll_* and lcd_hal_* are calls into the abstraction layer for the LCD peripheral; you can assume that any code that calls those uses the LCD peripheral.

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Thu Nov 25, 2021 8:25 pm
by Baldhead
@ESP_Sprite,

if i'm not wrong, i will have to understand the peripherals gdma/edma, and these peripherals don't have documentation too.

I am in a fix ;)

Re: ESP32-S3 LCD and I2S FULL documentation

Posted: Fri Nov 26, 2021 2:01 am
by ESP_Sprite
Well, you could use the ll/hal drivers up to a point... What specifically are you trying to pull off using these peripherals anyway?