[SD SPI] Failed to initialize the card witn 0x106, but 64gb - OK (IDFGH-14710) #15450
Open
3 tasks done
Labels
Status: Opened
Issue is new
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: