T-sim7600E don't recognize SD card
- 
					
					
					
					
 Hello, I try to read SD files on the T-SIM7600E, but I have only "Card Mount Failed". 
 in my config file I have
 #include "FS.h"
 #include "SD.h"
 #include "SPI.h"
 #define SD_MISO 2
 #define SD_MOSI 15
 #define SD_SCLK 14
 #define SD_CS 13and in my setup SPI.begin(SD_SCLK, SD_MISO, SD_MOSI, SD_CS); if(!SD.begin(SD_CS)){ 
 Serial.println("Card Mount Failed");
 return;
 }
 uint8_t cardType = SD.cardType();if(cardType == CARD_NONE){ Serial.println("No SD card attached"); return; }When I run the sketch it stops at "Card mount failed" I have tested with several SD card with a Fat32 format. 
 Any idea about the problem
 Regards
 Papbo
- 
					
					
					
					
 I successfully read SD card on my sim7600g, I mean I have "SDCard Size: 3789MB" when I run examples/Arduino_TinyGSM/AllFunctions/AllFunctions.ino. The SD card is formatted as FAT32 on Windows 10, no partition. I suggest to run one of examples such as AllFunctions.ino first. 
- 
					
					
					
					
 @caz Hello, 
 Thanks for your reply.
 Unfortunately I have tested my board with all the different exemples from the Arduino library and the result are always the same "SD card mount fail".
 I have formated the various SD card on Windows 10 and MAC OS as FAt32 with the same result.
 Regards
 Papbo
- 
					
					
					
					
 @papbo How do you attache the SD? Does its contact side face to the board? Its connector is not fail safe. 
- 
					
					
					
					
 @caz Yes The SD is on the right side.. 
- 
					
					
					
					
 @caz hello, do you have a sketch to test the SD card on the SIM7600...other than the examples (they are not working here) 
 Regards
 Papbo
- 
					
					
					
					
 @papbo AllFunctions.ino has following code. //Initialize SDCard 
 SPI.begin(SD_SCLK, SD_MISO, SD_MOSI, SD_CS);
 if (!SD.begin(SD_CS)) {
 Serial.println("SDCard MOUNT FAIL");
 } else {
 uint32_t cardSize = SD.cardSize() / (1024 * 1024);
 String str = "SDCard Size: " + String(cardSize) + "MB";
 Serial.println(str);
 }
- 
					
					
					
					
 @caz It is exactly what I have in my sketch (look at my first post) 
 Thanks
 Rehards
 Papbo
- 
					
					
					
					
 @papbo Does you code have serial port initilization code? // Set console baud rate 
 SerialMon.begin(115200);
 delay(10);// Set GSM module baud rate 
 SerialAT.begin(UART_BAUD, SERIAL_8N1, MODEM_RX, MODEM_TX);
- 
					
					
					
					
 @caz Of course all is ok regarding UART communication...I canuse the GPS mode, the GPRS mode, wifi...AT commands , send and receive SMS..but unable to read and write to the SD card 
 Regards
 Papbo
- 
					
					
					
					
 @papbo What is your current ESP32 version? Try upgrading?