Skip to content
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

Open
3 tasks done
sazanof opened this issue Feb 22, 2025 · 0 comments
Open
3 tasks done
Labels
Status: Opened Issue is new

Comments

@sazanof
Copy link

sazanof commented Feb 22, 2025

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

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...

Image

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

Image

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

@espressif-bot espressif-bot added the Status: Opened Issue is new label Feb 22, 2025
@github-actions github-actions bot changed the title [SD SPI] Failed to initialize the card witn 0x106, but 64gb - OK [SD SPI] Failed to initialize the card witn 0x106, but 64gb - OK (IDFGH-14710) Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

2 participants