espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.21k stars 7.34k forks source link

An Example for using ESP32S3 with SD card as Mass Storage Device via SDIO #9383

Open wbadry opened 5 months ago

wbadry commented 5 months ago

Related area

USB Mass Storage Device

Hardware specification

ESP32-S3 DevKitC-1

Is your feature request related to a problem?

The examples are based on the SPI SD card interface. Is it possible to have an example based on the SD MMC interface via SDIO ?

Describe the solution you'd like

A simple example to recognize the SD MMC connected to ESP32S3 to be recognized as USB mass storage device via one of the two USB ports

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

lbernstone commented 5 months ago

SD_MMC does not have methods for direct diskio access (reading/writing blocks). It looks like that would need to be added to use the USBMSC example as is.

martinberlin commented 2 months ago

Just wanted to know is there any progress on this particular Issue? So far I could implement SD card as Mass Storage Device but failed trying to do it in Arduino. Existing examples do not work correctly for me so I'm curious to understand how to get this one working

lbernstone commented 2 months ago

Yes, sorry @martinberlin. I missed the issue when I added the PR. If you have a 4-bit SDIO rig, I'd be interested to know how much faster it is than 1-bit. SD2USBMSC example Fixed by #9796