lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
305 stars 272 forks source link

ESP32S3 SPI error: invalid dma channel, chip only support spi dma channel auto-alloc #233

Closed zrcaeiou closed 6 months ago

zrcaeiou commented 6 months ago

Some codes in lvgl_helpers.c may cause SPI error. Because dma_channel should set to SPI_DMA_CH_AUTO (which value is 3) while using esp32s3, but it set value to 1.

Change these: #if defined (CONFIG_IDF_TARGET_ESP32C3) Into #if (defined (CONFIG_IDF_TARGET_ESP32C3)) || (defined (CONFIG_IDF_TARGET_ESP32S3)) May fix problem.