← index #12636Issue #8514
Off-topic · high · value 1.035
QUERY · ISSUE

how to add sdcard multi partition support on esp32 and esp32 s3

openby MichaelDu9226opened 2023-10-09updated 2023-10-09
enhancement

Is there any chance to add sdcard multi partition support on ESP32 or esp32 s3?

I noticed that stm32 supports sdcard multi partition
https://github.com/micropython/micropython/issues/2730

Any suggestions will be thanks

CANDIDATE · ISSUE

In esp32-s3, cannot use (machine. Sdcard class)

closedby lyzpopened 2022-04-10updated 2025-03-13
port-esp32needs-info

Call machine.Sdcard (slot = 2, miso = pin (36), MoSi = pin (35), SCK = pin (37), CS = pin (38)) on espressif esp32-s3 development board reports an error:

[0;31mE (8250) spi: spi_bus_initialize(762): invalid dma channel, chip only support spi dma channel auto-alloc
[0;31mE (8250) sdspi_host: spi_bus_initialize failed with rc=0x102
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 4, in <module>
OSError: (-258, 'ESP_ERR_INVALID_ARG')

modify micropython/ports/esp32/machine_sdcard.c Line 214,machine.sdcard() call can be resumed
.dma_channel = 2----------->.dma_channel = 3

Because in ESP-IDF dma_channel==3 Indicates automatic assignment DMA,Otherwise, the machine.Sdcard() will not work properly

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied