arduino-libraries / SD

SD Library for Arduino
http://arduino.cc/
GNU General Public License v3.0
179 stars 155 forks source link

Possibility to format card #119

Open simon88 opened 2 years ago

simon88 commented 2 years ago

Hi

It would be nice to have the possibility to format a SD card, for example I'm working with https://learn.adafruit.com/adafruit-spi-flash-sd-card/overview Adafruit module and now my card is bricked so the module is ready to go to the trash because I've no possibility to try to format it.

per1234 commented 2 years ago

The "SdFat" library does provide a formatting capability:

https://github.com/greiman/SdFat/blob/master/examples/SdFormatter/SdFormatter.ino

simon88 commented 2 years ago

Yes @per1234 I've try it but after format my card is brick, I've posted an issue https://github.com/greiman/SdFat/issues/382