Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Failed to initialize the card #39

@rjrajbir

Description

@rjrajbir

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions