embedded-sdmmc-rs icon indicating copy to clipboard operation
embedded-sdmmc-rs copied to clipboard

Support for formating SD card?

Open rowanfr opened this issue 1 year ago • 3 comments

I want to know if I've overlooked any functionality for formatting SD cards or if it's planned in the future. I can only seem to find information on how to print out information about them already preconfigured in FAT16 or FAT32 and the first line on the README being "This crate is intended to allow you to read/write files on a FAT formatted SD card on your Rust Embedded device" indicates that this crate is only for reading and writing not formatting.

If formatting is outside the scope of this crate then fair enough, but I want to double check.

rowanfr avatar Aug 13 '24 19:08 rowanfr

Actually formatting and partitioning would be useful and I’d happily merge support for that.

thejpster avatar Aug 14 '24 06:08 thejpster

I'll look into implementing it then (though I wouldn't expect this soon as I'm not familiar with how SD cards work at a low level so it will require some research).

rowanfr avatar Aug 14 '24 15:08 rowanfr

The Wikipedia article on the FAT format isn’t a bad place to start.

https://en.m.wikipedia.org/wiki/Design_of_the_FAT_file_system

thejpster avatar Aug 14 '24 17:08 thejpster