Struggling with the MicroSD card breakout board+ and an ESP3

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nicholmikey
 
Posts: 3
Joined: Fri Jan 21, 2022 12:46 am

Struggling with the MicroSD card breakout board+ and an ESP3

Post by nicholmikey »

I am wondering has anyone had success making the SD card breakout work with an ESP32. I am using the wiring and code here https://randomnerdtutorials.com/esp32-m ... d-arduino/ but I supplied 5v instead of 3.3, with 3.3v signals coming from the ESP32. This is the board I am using https://cdn.sparkfun.com/assets/learn_t ... lusV20.pdf I have tried in the arduino IDE and platformio in vs code, with the built in examples and the example posted above, I have also tried several different pins for CS while passing them to SD.begin(). I have also tried adding a 10k pull up on CS.

All I can get is

Code: Select all

[E][sd_diskio.cpp:123] sdSelectCard(): Select Failed
[E][sd_diskio.cpp:775] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
[E][sd_diskio.cpp:123] sdSelectCard(): Select Failed
Card Mount Failed
I have looked over the wiring a million times I am pretty confident it is correct. I have also tried several SD cards that I have formatted using this tool https://www.sdcard.org/downloads/formatter/ . I do see the LED on the SD reader flash when the setup runs. I have done a continuity check on all of the wiring.

The fixes I found found online are adding the pullup and supplying 5v rather than 3.3. Does anyone have other ideas to try?

Thank you in advance.
wiring
wiring
PXL_20220121_054249796-small.jpg (353.78 KiB) Viewed 595 times

User avatar
mikeysklar
 
Posts: 14165
Joined: Mon Aug 01, 2016 8:10 pm

Re: Struggling with the MicroSD card breakout board+ and an

Post by mikeysklar »

Everything needs to be 3v3 with the esp32 board you are using. Our Micro-SD board works fine with 3v3. Don't use 5v.

User avatar
nicholmikey
 
Posts: 3
Joined: Fri Jan 21, 2022 12:46 am

Re: Struggling with the MicroSD card breakout board+ and an

Post by nicholmikey »

I changed it to use 3.3v supply rather than 5v and that does seem to clear the chip select errors, but I'm still left with

Code: Select all

f_mount failed: (3) The physical drive cannot work
This is coming up for all cards of cards including https://www.adafruit.com/product/5252 I am formatting with the windows tool and trying the official SD card formatter. No dice so far.

I'll keep trying things, but if someone stumbles upon this I would love more ideas.

User avatar
nicholmikey
 
Posts: 3
Joined: Fri Jan 21, 2022 12:46 am

Re: Struggling with the MicroSD card breakout board+ and an

Post by nicholmikey »

I have solved the issues, it was my misunderstanding of the pinout on this thing plus board, the pins in the tutorial are not correct for this use, if I use the pins as they are written on the board it works. So 19 for MISO, 18 for MOSI, and so on.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”