Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD doesn't begins; There is no valid FAT volume part 2 #11142

Open
1 task done
KenFellows opened this issue Mar 19, 2025 · 1 comment
Open
1 task done

SD doesn't begins; There is no valid FAT volume part 2 #11142

KenFellows opened this issue Mar 19, 2025 · 1 comment
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@KenFellows
Copy link

Board

ESP32 VROOM 32D

Device Description

Only the Micro SD module

Hardware Configuration

Only the one module attached.

Version

v3.1.2

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

921600

Description

Connecting to the Micro SD module. I am using the default pins. I keep getting the following error message.
When I connect the board to an Arduino UNO it works fine.
Was this bug ever been resolved?

Sketch

#include <SD.h>

#define PIN_SPI_CS 5 // The ESP32 pin GPIO5

File myFile;

void setup() {
Serial.begin(9600);

if (!SD.begin(PIN_SPI_CS)) {
while (1) {
Serial.println(F("SD CARD FAILED, OR NOT PRESENT!"));
delay(1000);
}
}

Serial.println(F("SD CARD INITIALIZED."));

if (!SD.exists("/esp32.txt")) {
Serial.println(F("esp32.txt doesn't exist. Creating esp32.txt file..."));
// create a new file by opening a new file and immediately close it
myFile = SD.open("/esp32.txt", FILE_WRITE);
myFile.close();
}

// recheck if file is created or not
if (SD.exists("/esp32.txt"))
Serial.println(F("esp32.txt exists on SD Card."));
else
Serial.println(F("esp32.txt doesn't exist on SD Card."));
}

void loop() {
}

Debug Message

32-hal-periman.c:160] perimanSetPinBus(): Pin 23 successfully set to type GPIO (1) with bus 0x18
[ 2473][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 23 successfully set to type SPI_MASTER_MOSI (39) with bus 0x4
[ 2602][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x400fe564
[ 2734][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 5 successfully set to type GPIO (1) with bus 0x6
[ 2849][V][esp32-hal-periman.c:174] perimanSetPinBusExtraType(): Successfully set extra_type SD_SS for pin 5
[ 2972][E][sd_diskio.cpp:761] sdcard_mount(): f_mount failed: (13) There is no valid FAT volume

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@KenFellows KenFellows added the Status: Awaiting triage Issue is waiting for triage label Mar 19, 2025
@lbernstone
Copy link
Contributor

I think ExFAT is disabled by default. How is the disk formatted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

2 participants