SD CARD DRIVER WITH SDIO

amalamal
Posts: 23
Joined: Mon Dec 12, 2016 7:07 am

SD CARD DRIVER WITH SDIO

Postby amalamal » Tue Apr 18, 2017 12:36 pm

Hi

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


Thanks

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: SD CARD DRIVER WITH SDIO

Postby ESP_igrr » Tue Apr 18, 2017 12:46 pm

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.

amalamal
Posts: 23
Joined: Mon Dec 12, 2016 7:07 am

Re: SD CARD DRIVER WITH SDIO

Postby amalamal » Tue Apr 18, 2017 1:37 pm

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

adamtegen
Posts: 4
Joined: Wed Aug 01, 2018 10:12 pm

Re: SD CARD DRIVER WITH SDIO

Postby adamtegen » Wed Aug 01, 2018 10:53 pm

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.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: SD CARD DRIVER WITH SDIO

Postby ESP_igrr » Thu Aug 02, 2018 7:15 am

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

Who is online

Users browsing this forum: No registered users and 114 guests