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 card not accessible #5

Open
yolofy opened this issue Aug 20, 2018 · 1 comment
Open

SD card not accessible #5

yolofy opened this issue Aug 20, 2018 · 1 comment

Comments

@yolofy
Copy link

yolofy commented Aug 20, 2018

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() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants