Hardware integration with ESP32S3 Development board
Posted: Thu Jun 18, 2026 5:56 am
I have a SD card module that is working fine with ESP32 module but dose not work with ESP32 S3 module. It shows SD card mounted failed and doesn't detect the SD Card Module. #include <SPI.h>
#include <SD.h>
#define SD_CS 10
void setup() {
Serial.begin(115200);
if (!SD.begin(SD_CS)) {
Serial.println("SD Card Mount Failed");
return;
}
Serial.println("SD Card Initialized");
File file = SD.open("/data.txt");
if (!file) {
Serial.println("Failed to open file");
return;
}
Serial.println("Reading file:");
while (file.available()) {
Serial.write(file.read());
}
file.close();
}
void loop() {
}
This the code I used to check the card detection.
Please suggest me a solution for this problem.
#include <SD.h>
#define SD_CS 10
void setup() {
Serial.begin(115200);
if (!SD.begin(SD_CS)) {
Serial.println("SD Card Mount Failed");
return;
}
Serial.println("SD Card Initialized");
File file = SD.open("/data.txt");
if (!file) {
Serial.println("Failed to open file");
return;
}
Serial.println("Reading file:");
while (file.available()) {
Serial.write(file.read());
}
file.close();
}
void loop() {
}
This the code I used to check the card detection.
Please suggest me a solution for this problem.