-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 SPI] Failed to initialize the card witn 0x106, but 64gb - OK (IDFGH-14710) #15450
Comments
Hi @sazanof, Thanks for attaching the log for one of the failing cards. I can confirm that we've seen this issue being reported earlier, although we didn't have the specific card which could reproduce this issue (CMD59 returns "not supported"). Do you get the same error from other non-working cards? If the errors are different, could you please attach or link the logs for those other cards as well? We will then split this issue into one issue per root cause. |
Hi @igrr Each file also contains card description (for ex.) I conducted the last tests with different adapters like this (where there are no pull-up resistors, of course I added them) I am looking forward to your reply. Thanks! |
Thank you for the additional logs! I'll update the issue once we have any fixes to share. |
We found a few cards exhibiting similar issues, here are some conclusions so far:
|
It's great that the problem has been confirmed! I will wait and keep an eye on patches and fixes. If you need anything from me, please let me know! |
show us what you have got :-) |
Answers checklist.
General issue report
OS: Windows, Linux
IDF: 5.3, 5.4 (test with different)
Board: Wroom boards and custom boards
Log not ok: https://gist.github.com/sazanof/8d0a382d95f3451c15ec6ea746232306
Log with 64gb (success) https://gist.github.com/sazanof/c7a90758752e012375b5907d137f2f43
Topic on esp forum: https://www.esp32.com/viewtopic.php?p=144121
Hello! In my project, I use storing the web interface on a memory card. I couldn't get ESP32 to recognize the card for a very long time. I've tried a lot of options and variants: different ESP32 boards, custom boards, different wires length, pullup resistors, different
max_freq_khz
...regular microsd 1gb - error (type not supported)
16GB microsdhc memory card - CRC verification error
4gb MICROSDHC U-1 memory card - everything is fine
64gb Samsung evo microsd U-1 - everything is fine
So, cards < 64gb not working. Cards 64gb - works fine!
I installed Arduino with ESP32 boards and check SD SPI sketch example (https://github.com/espressif/arduino-esp32/tree/master/libraries/SD). ALL cards WORKS FINE! 1,4,8,16,32 GB.
Thus, I concluded that I was probably initializing the memory card incorrectly in the code example esp-idf, although I was using an example from your official 5.4 branch (https://github.com/espressif/esp-idf/blob/master/examples/storage/sd_card/sdspi/README.md).
I searched the entire official forum, the entire github - yes, there are similar problems, but they are also floating in nature and there are no solutions to most of the problems. Besides, there's probably a bug somewhere in IDF code or example code, since sd cards work correct through another framework (arduino).
Can you help to solve this problem?
More information here https://www.esp32.com/viewtopic.php?p=144121#p144121
The text was updated successfully, but these errors were encountered: