Never be able to make sd_card example work
Posted: Wed Feb 10, 2021 4:40 am
I need helps.
I try to use the sd_card example provided by esp_idf to read a sd card from a adapter.
From unknown reason, I have never been able to make it work.
This is the sd card adapter I got it from Amazon.
https://www.amazon.com/HiLetgo-Adater-I ... ics&sr=1-4
This is the message I got after SPI initiated:
I (344) example: Using SPI peripheral
I (354) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (364) sdspi_transaction: cmd=52, R1 response: command not supported
I (414) sdspi_transaction: cmd=5, R1 response: command not supported
W (424) sdmmc_common: sdmmc_init_csd: SDSC card reports capacity=15949824. Limiting to 8388608.
E (424) sdmmc_sd: sdmmc_check_scr: send_scr returned 0x109
E (424) vfs_fat_sdmmc: sdmmc_card_init failed (0x109).
I (434) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (444) example: Failed to initialize the card (ESP_ERR_INVALID_CRC). Make sure SD card lines have pull-up resistors in place.
I've tried to map different IO pins, pull up registers. No one works for me.
Please help.
Thanks in advance.
Josh
I try to use the sd_card example provided by esp_idf to read a sd card from a adapter.
From unknown reason, I have never been able to make it work.
This is the sd card adapter I got it from Amazon.
https://www.amazon.com/HiLetgo-Adater-I ... ics&sr=1-4
This is the message I got after SPI initiated:
I (344) example: Using SPI peripheral
I (354) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (364) sdspi_transaction: cmd=52, R1 response: command not supported
I (414) sdspi_transaction: cmd=5, R1 response: command not supported
W (424) sdmmc_common: sdmmc_init_csd: SDSC card reports capacity=15949824. Limiting to 8388608.
E (424) sdmmc_sd: sdmmc_check_scr: send_scr returned 0x109
E (424) vfs_fat_sdmmc: sdmmc_card_init failed (0x109).
I (434) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (444) example: Failed to initialize the card (ESP_ERR_INVALID_CRC). Make sure SD card lines have pull-up resistors in place.
I've tried to map different IO pins, pull up registers. No one works for me.
Please help.
Thanks in advance.
Josh