From fb0dd86b39950f78de0b360a436b99fccc80c9a9 Mon Sep 17 00:00:00 2001 From: Maripo GODA Date: Fri, 13 Jan 2023 15:24:15 +0900 Subject: [PATCH] esp32/machine_sdcard: Change dma_channel to SPI_DMA_CH_AUTO for ESP32S3. Specifying DMA channel 2 causes an "invalid dma channel" error. In ESP-IDF, the only available channel for ESP32S3 is SPI_DMA_CH_AUTO=3. --- ports/esp32/machine_sdcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/esp32/machine_sdcard.c b/ports/esp32/machine_sdcard.c index 801a26f378..5b495f8494 100644 --- a/ports/esp32/machine_sdcard.c +++ b/ports/esp32/machine_sdcard.c @@ -211,7 +211,7 @@ STATIC mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args .gpio_cs = GPIO_NUM_34, .gpio_cd = SDSPI_SLOT_NO_CD, .gpio_wp = SDSPI_SLOT_NO_WP, - .dma_channel = 2 + .dma_channel = SPI_DMA_CH_AUTO }, SDSPI_SLOT_CONFIG_DEFAULT() };