ESP32-WROVER-B SD card access in SPI mode with the SPI pinout for the SPI Flash and PSRAM

skteh76
Posts: 5
Joined: Sun Feb 02, 2020 12:43 pm

ESP32-WROVER-B SD card access in SPI mode with the SPI pinout for the SPI Flash and PSRAM

Postby skteh76 » Wed May 06, 2020 7:47 am

Hi,

Is it possible to use the SPI that connected with the SPI Flash and PSRAM in ESP32-WROVER to connect to external SD card and accessing it in SPI mode?
QQ截图20200506154611.png
QQ截图20200506154611.png (36.14 KiB) Viewed 674 times

WiFive
Posts: 2951
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP32-WROVER-B SD card access in SPI mode with the SPI pinout for the SPI Flash and PSRAM

Postby WiFive » Wed May 06, 2020 4:20 pm

Most code runs from flash so it is almost always busy. You would have to do a lot of tricks to get it working and it might have too many limitations to be useful.
Last edited by WiFive on Thu May 07, 2020 9:23 am, edited 3 times in total.

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

Re: ESP32-WROVER-B SD card access in SPI mode with the SPI pinout for the SPI Flash and PSRAM

Postby ESP_igrr » Thu May 07, 2020 6:32 am

Hi skteh76,

The feature to use the SPI master driver with SPI1 interface had been added very recently and will be part of IDF 4.2 release. You can try it on the master branch. There is some documentation here: https://docs.espressif.com/projects/esp ... n-spi1-bus
However we don't have an example of it being used with SD cards, yet.

skteh76
Posts: 5
Joined: Sun Feb 02, 2020 12:43 pm

Re: ESP32-WROVER-B SD card access in SPI mode with the SPI pinout for the SPI Flash and PSRAM

Postby skteh76 » Fri May 08, 2020 8:02 am

Hello WiFive and ESP_igrr, thank for the respond.
I think I will think for another way to access the sd card instead of SPI1.

Who is online

Users browsing this forum: No registered users and 20 guests