You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in 4-bit: SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0, SD_MMC_D1, SD_MMC_D2, SD_MMC_D3)
or 1-bit:
SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0)
Version
v3.1.0
IDE Name
Arduino IDE
Operating System
win10
Flash frequency
80
PSRAM enabled
yes
Upload speed
256000
Description
i was getting alot of errors on many SD cards. even sometimes for initializing them i get error. so i searched and find this:
sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
(espressif/esp-idf#12968)
in it they say we should increase the time out to fix it: esp-idf/components/driver/sdmmc
/sdmmc_host.c
the const uint32_t data_timeout_ms = 100; should be over 500ms or 1000ms.
problem is i cant fined that file. can you please fix it?
for example, in 16GB it wont write at all, but recognize it. the speed doesn't matter. i set it to 10Mhz and 40MHz. no change. and on my old 8GB sd cards, it wont even initialize. but if i put a 32GB , it all works. read and write works.
for 16GB:
SD card Pin set in 4-bit mode success!
SD card initialized successfull
SD card type=SDHC
Card size: 15523MB
Total bytes: 15514MB
Used bytes: 7MB
E (4289) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (4290) diskio_sdmmc: sdmmc_read_blocks failed (0x107)
write failed
E (4301) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (4301) diskio_sdmmc: sdmmc_read_blocks failed (0x107)
for 8GB:
E (2618) sdmmc_sd: sdmmc_init_sd_scr: send_scr (1) returned 0x107
E (2619) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
No SD card attached
SD card mount failed
write failed
for 32GB:
SD card Pin set in 4-bit mode success!
SD card initialized successfull
SD card type=SDHC
Card size: 31956MB
Total bytes: 31943MB
Used bytes: 84MB
write successfull
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
I confirm I have checked existing issues, online documentation and Troubleshooting guide.
The text was updated successfully, but these errors were encountered:
The file where we this needs to be changed is part of ESP-IDF and is not available (yet) as configuration value. We do not change files in ESP-IDF ourselves, so I suggest that you post in the IDF issue you linked above with hopes that this will be implemented sooner. Once that change is in the supported by Arduino IDF versions, we can add support for it on our end.
I'm closing this for now. Please open a new issue when we can actually implement it here :)
Board
ESP32-S3
Device Description
Devkit
Hardware Configuration
in 4-bit:
SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0, SD_MMC_D1, SD_MMC_D2, SD_MMC_D3)
or 1-bit:
SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0)
Version
v3.1.0
IDE Name
Arduino IDE
Operating System
win10
Flash frequency
80
PSRAM enabled
yes
Upload speed
256000
Description
i was getting alot of errors on many SD cards. even sometimes for initializing them i get error. so i searched and find this:
sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
(espressif/esp-idf#12968)
in it they say we should increase the time out to fix it:
esp-idf/components/driver/sdmmc
/sdmmc_host.c
the
const uint32_t data_timeout_ms = 100;
should be over 500ms or 1000ms.problem is i cant fined that file. can you please fix it?
for example, in 16GB it wont write at all, but recognize it. the speed doesn't matter. i set it to 10Mhz and 40MHz. no change. and on my old 8GB sd cards, it wont even initialize. but if i put a 32GB , it all works. read and write works.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: