I have an unusual ESP32-Wroom based card with an SD socket I'm trying to use. The pins are:
PIN22 GPIO2 SD CS
PIN35 GPIO18 SD CLK
PIN38 GPIO19 SD MISO
PIN36 GPIO23 SD MOSI
I have tried the example SD apps for ESP32 but no luck. I ran across one example that seemed to indicate that these pine are mapped correctly, but I'm not sure that's correct. I looked through some of the SPI library source but didn't see how the pins are set.
What do i need to do to make a card with nonstandard pin mappings work?
Please see if it helps:
(Using 2 SPI ports on ESP32)
opened 01:19PM - 15 Mar 18 UTC
closed 01:32AM - 16 Mar 18 UTC
### Hardware:
Board: ESP32 Dev Kit
Core Installation/update date: … Feb 2018
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200?
### Description:
I am using a SD card to store values from a RFID reader RC522.
Both use the SPI bus, and are known to have compatibility issues. I have connected them together using a different CS only and all other pins being same and when I remove power of SD card module, RC522 works well and when I remove MOSI of RC522 SD card works. (Arduino forum has said somewhere the issue is with the old SD card modules)
So i wanted to use the second SPI. I saw this issue https://github.com/espressif/arduino-esp32/issues/790 but am still not sure how to use it. Could anyone help me ?
What pins do I use for HSPI ? or are they reconfigureable. A simple general example would be great.
(ESP32 SPI Tutorial)
http://iot-bits.com/esp32/esp32-spi-tutorial-part-1/