I'm trying to use an SD CARD module with the TTGO TCALL SIM800L.(Based on ESP32)
the TTGO TCALL SIM800L V1.4 uses pin23 as PWR and this same pin is MOSI for SDCARD
In version 1.3 it would conflict with pin 5. RST to SIM800L and VPPI_SS (CP)
https://user-images.githubusercontent.com/53688337/85398433-d9036900-b572-11ea-99ec-04e912b5fd72.JPG
I can't use the SPI pins because I need to use also the SIM800L module.
The rSD library uses by default the MOSI(23),MISO(19),SLK(18) and CS(5) pins.(These pins are assigned for SD CARD in TTGO TCALL SIM800L)
The rSD library only allows to initialize the CS pin (sd.Initialize(MY_CS) )
I need to configure other pins for SDCARD:
CS=14,SCLK=18,MISO=19,MOSI=15
In Arduino IDE it works I have it configured like this and it works fine
How can I initialize rSD like this:
SD.initialize(MY_SCLK, MY_MISO, MY_MOSI, MY_CS);
Thanks for your help!!!!
the TTGO TCALL SIM800L V1.4 uses pin23 as PWR and this same pin is MOSI for SDCARD
In version 1.3 it would conflict with pin 5. RST to SIM800L and VPPI_SS (CP)
https://user-images.githubusercontent.com/53688337/85398433-d9036900-b572-11ea-99ec-04e912b5fd72.JPG
I can't use the SPI pins because I need to use also the SIM800L module.
The rSD library uses by default the MOSI(23),MISO(19),SLK(18) and CS(5) pins.(These pins are assigned for SD CARD in TTGO TCALL SIM800L)
The rSD library only allows to initialize the CS pin (sd.Initialize(MY_CS) )
I need to configure other pins for SDCARD:
CS=14,SCLK=18,MISO=19,MOSI=15
In Arduino IDE it works I have it configured like this and it works fine
ARDUINO SKETCH:
//............
#define MY_CS 14
#define MY_SCLK 18
#define MY_MISO 19
#define MY_MOSI 15
///....
void setupSDCard()
{
SPI1.begin(MY_SCLK, MY_MISO, MY_MOSI, MY_CS);
//Assuming use of SPI SD card
if (!SD.begin(MY_CS, SPI1)) {
Serial.println("Card Mount Failed");
} else {
Serial.println("SDCard Mount PASS");
String size = String((uint32_t)(SD.cardSize() / 1024 / 1024)) + "MB";
Serial.println(size);
}
}
How can I initialize rSD like this:
SD.initialize(MY_SCLK, MY_MISO, MY_MOSI, MY_CS);
Thanks for your help!!!!
Last edited: