Skip to content

ARM SAMD M0 & SdFat require reduced clock #4

@constant-flow

Description

@constant-flow

Error

When using the sdfat sample the code reports failure until you decrease the clock speed of the SD card.
This is an issue discussed here as well.

Testing

My board: Arduino MKR Wifi 1010
Example: Uno_and_above_SdFat

Fix

changing l.435 in Uno_and_above_SdFat.ino
from
if (!SD.begin(SD_CS_PIN)) {
to
if (!SD.begin(SD_CS_PIN, SD_SCK_MHZ(12))) {
fixed it for me.

Further details

The SdFat-QuickStart even uses only 4 MHz .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions