TTGO-TAudio icon indicating copy to clipboard operation
TTGO-TAudio copied to clipboard

SD card not accessible

Open yolofy opened this issue 7 years ago • 1 comments

I get the following error when trying to initialize the sd card: E (1470) sdmmc_cmd: sdmmc_card_init: send_scr (1) returned 0x109 Card Mount Failed

This is the code:

#include <sd_defines.h>
#include <SD_MMC.h>

void setup() {
    Serial.begin(115200);
    if(!SD_MMC.begin()){
        Serial.println("Card Mount Failed");
        return;
    }
    uint64_t cardSize = SD_MMC.cardSize() / (1024 * 1024);
    Serial.printf("SD Card Size: %lluMB\n", cardSize);
}
void loop() {}

yolofy avatar Aug 20 '18 15:08 yolofy

I've got it working: https://github.com/MisterRager/RingThing/blob/1848a7f41aa0e5a324b80d0d4344424dd4d4f606/src/card.cpp

MisterRager avatar Oct 22 '18 16:10 MisterRager