• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

MicroSD Card – SD Card Mount Failed (In Module 2 / unit 1 – saving a photo)

Q&A Forum › Category: ESP32 › MicroSD Card – SD Card Mount Failed (In Module 2 / unit 1 – saving a photo)
0 Vote Up Vote Down
Billy Pruchno asked 4 years ago

I was able to successfully complete all of Module 1.  I am not sure how to diagnose or work-around this issue.
What I see in the Serial monitor:
 
Initializing the camera module…Ok!
Initializing the MicroSD card module… Starting SD Card
E (1534) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
SD Card Mount Failed
End of Setup
Any ideas?

4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
What is the microSD card that you’re using?
Did you format your microSD card as FAT32 before starting? 
Regards,
Sara

0 Vote Up Vote Down
Billy Pruchno answered 4 years ago

Hey Sara – thanks for the reply.
I am using a FAT32 formatted SanDisk 512 mb. However, I am getting this same error if there is no card in the device.
I thought from the code – which makes 2 checks – one to mount the SD card, and one that checks its cardType that I would get a different answer if there was no SD card present.
I should be receiving some new SD cards today sometime, and I will retest with those.
Any idea what I am doing wrong?
Thanks,

  • Billy 
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I’m not sure…
 
Can you check the SD card with this example sketch?
https://raw.githubusercontent.com/RuiSantosdotme/Random-Nerd-Tutorials/master/Projects/ESP32/MicroSD_Card/ESP32_SD_Test_Pins.ino
You only have to modify the following lines with the pins used by the microSD card:

#define SCK  17
#define MISO  19
#define MOSI  23
#define CS  5

 
I hope this helps figure out what’s wrong.
Regards,
Sara
 

0 Vote Up Vote Down
William Lucid answered 4 years ago

Hi,
Have you tried “SDFormatter” to format your SD card?

Suggest reading:   “Format Large SD Cards FAT32”

Author of the article has used up to 64 GB.  Let us know if you are successful using full capacity of your 512 GB card.

I believe; “Microsoft” FAT32 has a limit of 32 GB.  FAT32 may have a limiting size of 32 GB formatted.

“SDFormatter” software FAQ

Regards,
William

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.