This repository was archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Failed to initialize the card #39
Copy link
Copy link
Open
Description
Hello there
I am first time working on an SD card with ESP-IDF
I am using ESP32 Devkit_v1 and an SD card module
I have tried SD Arduino lib and it worked.
Now for ESP_IDF i am using esp-idf/examples/storage/sd_card/sdspi/main/sd_card_example_main.c
I am using SPI MODE here
But I got this error
�[0;32mI (294) cpu_start: Pro cpu start user code�[0m
�[0;32mI (312) spi_flash: detected chip: generic�[0m
�[0;32mI (312) spi_flash: flash io: dio�[0m
�[0;32mI (313) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m
�[0;32mI (321) example: Initializing SD card�[0m
�[0;32mI (321) example: Using SPI peripheral�[0m
�[0;32mI (331) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 �[0m
�[0;32mI (341) sdspi_transaction: cmd=52, R1 response: command not supported�[0m
�[0;32mI (391) sdspi_transaction: cmd=5, R1 response: command not supported�[0m
�[0;31mE (421) sdmmc_sd: sdmmc_check_scr: send_scr returned 0x109�[0m
�[0;31mE (421) vfs_fat_sdmmc: sdmmc_card_init failed (0x109).�[0m
�[0;32mI (421) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 �[0m
�[0;31mE (431) example: Failed to initialize the card (ESP_ERR_INVALID_CRC). Make sure SD card lines have pull-up resistors in place.�[0m
Thank you in advance.
Metadata
Metadata
Assignees
Labels
No labels