SdFat library problems #3185
Replies: 4 comments 3 replies
-
I also recall that 5.2.1 was working. 5.3.0 was when it failed the SdFat. But just going back to 5.2.1 or 5.2.0 didn't fix. Had to go way back to 5.0.0 and also delete the temp files. |
Beta Was this translation helpful? Give feedback.
-
I've just done the RP2040SDIO test (parallel SDIO, way faster than 1-bit SPI) and it ran fine. As did the My bench.ino diffs are below. All I did was set the proper CS pin, force FatType to 3 (so it uses SdFs like in your snippet), and set up the SPI1 port (I have a hardwired testboard w/this config).
That said, you really should consider using 5.0.0 brought in an updated SdFat library from upstream, and there was a minor change in 5.2.1 allowing SPI to be unidirectional, but otherwise that part of the core has been stable. |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into this. :-) I did a clean install of V5.0.0 and it worked. Updated to V5.3.0 and it stops working. Did another clean of V5.0.0 and it's back again. I will do more tests soon. Cheers. |
Beta Was this translation helpful? Give feedback.
-
BTW: right now I can't use SDIO, as I ran out of pins on my project. :-o |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Up until a few releases ago it was working. But as soon as I updated to 5.2.0, if I recall, it stops, had to install 5.0.0 to have it working again. Not sure on what I could gather and post here to help out. I will do a barebones test to see if maybe it's a ram corruption problem. Anyway, thanks for any input.
// SD Card Pins //
int _MISO = 16; // AKA SPI RX
int _MOSI = 19; // AKA SPI TX
int _CS = 17;
int _SCK = 18;
//
#include <SdFat.h>
SdFs SD;
SPI.setRX(_MISO);
SPI.setTX(_MOSI);
SPI.setSCK(_SCK);
//
if (!SD.begin(SdSpiConfig(_CS, DEDICATED_SPI, SPI_FULL_SPEED)))
{
// Failed! //
}
Beta Was this translation helpful? Give feedback.
All reactions