-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SD card : Card Mount Failed #9966
Comments
Works in Wokwi. Maybe your module is designed for 5V? |
Thanks for your reply. I actually tested with both 3.3 and 5V.None is working. Anything to pass in SD.begin()? |
You don't need to pass anything to begin if you use the default pins. If you want to change pins, you should uncomment the REASSIGN_PINS block, and you can see exactly what that changes (it sets the pins for SPI.begin and SD.begin). |
I tried all the methods, unfortunately its not working. |
I will test with the latest code on a physical board, just to check that there isn't a regression in the code, but the most likely issue beyond that is a physical error. Double check your connections, make sure there isn't any EMI, try other pins. |
How long are your leads to the SD? I had a problem with modestly long leads 10cm to 20cm. |
Board
ESP32-C6-WROOM-1-N8
Device Description
| SD CARD PIN | ESP32-C6 PIN |
| MISO | 20 |
| MOSI | GPIO19 |
| CS | GPIO18 |
| SCK | GPIO21 |
| VCC | 3.3V |
| GND | GND |
Hardware Configuration
No
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
115200
Description
Hi ,
I am trying the testing code of Examples -> SD -> SD_Test and using the above wiring connection. It always returning me the same error
Card Mounting Failed
When i tried Uno example on Uno board, it is working fine.
I have checked the Card reader module and SD card are working fine, seems some issue with library.
Can you please help me out here?
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: