Open prototypicalpro opened 4 years ago
I have also posted this issue in the SdFat library issue tracker.
I brought up the issue on the PR that causes the problem a little bit ago. Should have probably created an issue here. This causes the issue for me at least: https://github.com/adafruit/ArduinoCore-samd/pull/186
try initialiing the card as 12MHZ instead of the default 50
I tried using 12MHz or 1MHz speeds, and using the Adafruit SdFat fork, but still had the same issue.
see this thread https://forums.adafruit.com/viewtopic.php?f=57&t=161488
Using 10Mhz also does not fix the issue.
This just burned me too. Broke code that's been working fne for 2 years on M0 Adalogger. Still working fine as always on 32u4 Adalogger and on Teensy 3.5 & 3.6.
The "set 12mhz" suggestion actually worked in my case. I have two Feather M0 Adaloggers and both were working fine, both stopped working when I updated the board support, and both now work again. At least at first glance with basic testing that SD.begin() now succeeds.
Specifically, I did this:
... #elif defined(ADAFRUIT_FEATHER_M0) ... #define SD_SPI_MHZ 12 // https://github.com/adafruit/ArduinoCore-samd/pull/186 ... #if defined(SD_CS_PIN) && defined(SD_SPI_MHZ) if (SD.begin(SD_CS_PIN,SD_SCK_MHZ(SD_SPI_MHZ))) { ...
A change in v1.5.8 or v1.5.9 breaks the SdFat library, which can no longer initialize the SD card.
I tested this problem using v1.8.4 of the Arduino SAMD core and v1.1.1 of the SdFat library, uploading the
QuickStart
example sketch to an Adafruit Feather M0 WiFi with an Adalogger Featherwing and 16GB SDcard. No modifications were made to the sketch. Using version v1.5.7 of the Adafruit SAMD Core, I received the following output:However when upgrading to version v1.5.9, the example no longer worked:
A fix for this issue would be appreciated, as many projects I work on use SdFat for low-power SD functionality. Thanks for your help!
Here is my build log for v1.5.7:
Here is my build log for v1.5.9: