atomic14 / atomic14/esp32-sdcard-msc
SDIO not working
- Dominant language
- C++
- Stars
- 33
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm using VsCode with Platformio on an ESP32-S3.
SPI is working but not SDIO 4 bit interface. I tested my wiring and it is working great (I can write on the SD with an Espressif SDIO interface example).
To use SDIO, I added the line:
`#define USE_SDIO`
Platformio.ini:
```
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
lib_deps =
SD
FS
build_flags =
-DSD_CARD_CLK=GPIO_NUM_6
-DSD_CARD_CMD=GPIO_NUM_15
-DSD_CARD_DAT0=GPIO_NUM_7
-DSD_CARD_DAT1=GPIO_NUM_17
-DSD_CARD_DAT2=GPIO_NUM_18
-DSD_CARD_DAT3=GPIO_NUM_16
-DCORE_DEBUG_LEVEL=5
-DNO_GLOBAL_SERIAL
monitor_filters = esp32_exception_decoder
monitor_speed = 115200
```
Error:
```
[ 103][D][esp32-hal-tinyusb.c:680] tinyusb_enable_interface(): Interface MSC enabled
[ 104][D][esp32-hal-tinyusb.c:680] tinyusb_enable_interface(): Interface CDC enabled
E (6) vfs_fat_sdmmc: slot init failed (0x103).
[ 125][D][esp32-hal-tinyusb.c:569] tinyusb_load_enabled_interfaces(): Load Done: if_num: 3, descr_len: 98, if_mask: 0x11
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Platformio.ini configuration and reproduce the ESP32-S3 SDIO failure using the shown wiring and build flags. Compare the setup with the Espressif SDIO interface example that works, then use the vfs_fat_sdmmc slot-init error to identify the mismatch. Done means the project initializes and accesses the SD card through the four-bit SDIO interface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100