Skip to content

"Card Mount Failed" on first boot only. #2011

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

Closed
samuelskottenborg opened this issue Oct 31, 2018 · 1 comment
Closed

"Card Mount Failed" on first boot only. #2011

samuelskottenborg opened this issue Oct 31, 2018 · 1 comment

Comments

@samuelskottenborg
Copy link

samuelskottenborg commented Oct 31, 2018

I'm trying to append to a log file, but suddenly SD works very inconsistently. I'm pretty sure it just suddenly started, but I tried so many things I can't remember it so I'm a little uncertain on that part.

When I power on the ESP32 with the SD card module I get the error message "Card Mount Failed" from the sketch, but when I reset the ESP32 via the button or ESP.restart() it will work almost every time on second try.

So naturally I thought to myself it would be a power problem, I then added a cap, no luck. After that I added 1000ms delay in the setup(), still no luck. I also tried powering the SD module externally.

I have two identical setup with same problem on both. It can be reproduced with the standard SD_Test sketch included in the ESP32 package.

It might be related to this? #259
I tried the fix from there with custom SPI, still no luck (stopped working at all).

I'm running Windows 10 with the Arduino IDE 1.8.7 (also tried reinstalling).

This is my connections:
CS: D5
MISO: D19
MOSI: D23
SCK: D18

@samuelskottenborg
Copy link
Author

I found the issue. It turns out some of my SD cards (they are properly formatted) only works after the ESP has been reset without losing power. Don't ask my why that is the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant