Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: vinifr on July 20, 2018, 11:56:29 PM

Title: ESP32-EVB Rev C - ESP-IDF SD card example does not work
Post by: vinifr on July 20, 2018, 11:56:29 PM
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.
Title: Re: ESP32-EVB Rev C - ESP-IDF SD card example does not work
Post by: LubOlimex on July 23, 2018, 08:35:13 AM
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
Title: Re: ESP32-EVB Rev C - ESP-IDF SD card example does not work
Post by: vinifr on November 13, 2018, 12:35:53 PM
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;