Page 1 of 1

SD CARD DRIVER WITH SDIO

Posted: Tue Apr 18, 2017 12:36 pm
by amalamal
Hi

Anyone have the driver for SD card with SDIO protocol with a pinout of GPIO6,7,8,9,10,11


Thanks

Re: SD CARD DRIVER WITH SDIO

Posted: Tue Apr 18, 2017 12:46 pm
by ESP_igrr
ESP-IDF has the SDMMC driver which can use these pins (you need to use slot = SDMMC_HOST_SLOT_0 in sdmmc_host_t structure to use it).

Note however that these pins are normally used by the SPI flash. It is only possible to use SDMMC on these pins if SPI flash is assigned to other pins. This can configured using EFUSEs.

Re: SD CARD DRIVER WITH SDIO

Posted: Tue Apr 18, 2017 1:37 pm
by amalamal
Hi ESP_igrr

Thanks for the reply, I changed the slote 1 to slote 0 in sdmmc_host_t structure .

As per your suggestion
" It is only possible to use SDMMC on these pins if SPI flash is assigned to other pins"

could you please tell me how to assign the SPI flash to other pins?

Thanks

Re: SD CARD DRIVER WITH SDIO

Posted: Wed Aug 01, 2018 10:53 pm
by adamtegen
I am also curious on how to assign SPI flash to other pins. I'm looking to use 2 SD cards, one each on _0 and _1.

Re: SD CARD DRIVER WITH SDIO

Posted: Thu Aug 02, 2018 7:15 am
by ESP_igrr
SPI flash can be remapped to other pins by burning EFUSEs of the ESP32. "espefuse.py" tool which comes with IDF can be used for this purpose. Please see

https://github.com/espressif/esptool/wi ... flash-pins