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
I'm using a common Arduino SD Card PCB that is connected with 14cm wires to the ESP32
Hardware Configuration
I'm using the VSPI Pins 18, 19, 23 and 5
Version
other
IDE Name
Arduino IDE
Operating System
Arch Linux
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
Updating to arduino-esp32 v2.0.2 caused the SD-Card to not work anymore (previously I used 1.0.6). The solutions in the other issues didn't work.
Reverting all changes in the file sd_diskio.cpp gave me the same functionality as in 1.0.6.
Looking at the code I suspected the sdWait timeout in the sdSelectCard function, because in 1.0.6 a timeout was just ignored but this is now fixed. In other places (sdWriteBytes) a timeout of 500ms is used so I changed the value to that and now my card is recognized.
For me just chaning the timeout in v2.0.2 fixed the issue.
Sadly not. At first it worked but after a re-upload I had the same problem again. In the end I reverted all changes to sd_diskio.cpp back to 1.0.6. I still got the "Select failed" message but because the return was missing in
that was ignored. The missing return is clearly a bug but ignoring the failure kept the code going and I could read files. My SD-Card was rather old maybe it has to do with that.
Board
DOIT ESP32 DEVKIT V1
Device Description
I'm using a common Arduino SD Card PCB that is connected with 14cm wires to the ESP32
Hardware Configuration
I'm using the VSPI Pins 18, 19, 23 and 5
Version
other
IDE Name
Arduino IDE
Operating System
Arch Linux
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
Updating to arduino-esp32 v2.0.2 caused the SD-Card to not work anymore (previously I used 1.0.6). The solutions in the other issues didn't work.
Reverting all changes in the file sd_diskio.cpp gave me the same functionality as in 1.0.6.
Looking at the code I suspected the sdWait timeout in the sdSelectCard function, because in 1.0.6 a timeout was just ignored but this is now fixed. In other places (sdWriteBytes) a timeout of 500ms is used so I changed the value to that and now my card is recognized.
For me just chaning the timeout in v2.0.2 fixed the issue.
Sketch
Example SD_Test sketch
Debug Message
Before changing the timeout:
After changing the timeout:
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: