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

ARM SAMD M0 & SdFat require reduced clock #4

Open
constant-flow opened this issue Mar 31, 2021 · 1 comment
Open

ARM SAMD M0 & SdFat require reduced clock #4

constant-flow opened this issue Mar 31, 2021 · 1 comment

Comments

@constant-flow
Copy link

constant-flow commented Mar 31, 2021

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 .

@constant-flow constant-flow changed the title Arduino MKR Wifi 1010 & Uno_and_above_SdFat only working with reduced clock ARM SAMD M0 & SdFat require reduced clock Mar 31, 2021
@siara-cc
Copy link
Owner

Hi sorry I saw this only now. It seems I haven't been getting notifications as I was not a Watcher for this repo.
Please see this comment: siara-cc/esp_arduino_sqlite3_lib#23 (comment)
It could be the reason for this issue.
Since there could be a lot of IO issues like this, I kept IO functions outside this library so the users can handle it if it does not work for them.

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