Hi,
I am testing SD card example from IDF but does not work: https://github.com/espressif/esp-idf/blob/master/examples/storage/sd_card/main/sd_card_example_main.c (https://github.com/espressif/esp-idf/blob/master/examples/storage/sd_card/main/sd_card_example_main.c)
This is the log:
sdcard: Using SDMMC peripheral
gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
sdmmc_cmd: sdmmc_card_init: send_scr (2) returned 0xffffffff
sdcard: Failed to mount filesystem. If you want the card to be formatted, set format_if_mount_failed = true.
Try our one:
https://github.com/OLIMEX/ESP32-EVB/tree/master/SOFTWARE/sd_card
More ESP32-EVB examples can be found here: https://github.com/OLIMEX/ESP32-EVB/tree/master/SOFTWARE
Hi, I have figured out the problem.
We just need uncomment this line in ESP-IDF example:
// To use 1-line SD mode, uncomment the following line:
host.flags = SDMMC_HOST_FLAG_1BIT;