First off, thanks for this amazing library!
I get an error when running a SD card for a few weeks that prevents me from opening a file for reading.
If I then reset the MCU, I cannot successfully initialize the SD card any more.
I managed to flash a test program to my ARM chip that uses the sd.errorPrint(&Serial); code.
When running the test program with a "hung" SD card, I get the following output:
SD errorCode: 0X1,0X0
after a failed call to
sd.begin(chipSelect, SPI_HALF_SPEED)
If I power cycle the SD card, it then recovers from being "hung" and functions normally as expected for a few more weeks.
I have read that SD cards operating in SPI mode are prone to "hanging" after several days of running (i guess the applet loaded onto the SD card controller is not so good at dealing with SPI implementation), and that the only way to resolve the issue is to power cycle the SD card (thereby "restarting" the applet).
Is this correct?
Is there a way to recover from this error using the SdFat library without having to schedule a site visit to power cycle the SD card?
Here is the SD portion of my design:

First off, thanks for this amazing library!
I get an error when running a SD card for a few weeks that prevents me from opening a file for reading.
If I then reset the MCU, I cannot successfully initialize the SD card any more.
I managed to flash a test program to my ARM chip that uses the
sd.errorPrint(&Serial);code.When running the test program with a "hung" SD card, I get the following output:
SD errorCode: 0X1,0X0after a failed call to
sd.begin(chipSelect, SPI_HALF_SPEED)If I power cycle the SD card, it then recovers from being "hung" and functions normally as expected for a few more weeks.
I have read that SD cards operating in SPI mode are prone to "hanging" after several days of running (i guess the applet loaded onto the SD card controller is not so good at dealing with SPI implementation), and that the only way to resolve the issue is to power cycle the SD card (thereby "restarting" the applet).
Is this correct?
Is there a way to recover from this error using the SdFat library without having to schedule a site visit to power cycle the SD card?
Here is the SD portion of my design: