mjs513
Senior Member+
Good morning all
USB Stuff: Most of the history for PFsLib and Partition formatting can be found on this thread: Many TLAs: MTP MSC FS SD SDFat LittleFS UsbMSCFat to work with each other 8) . You will see all the gory details on getting exFAT/FAT formatter working for partitions.
For the volume additional info was needed sdfat primarily on partition sizes, clustercounts etc....
One of the things we did was create a wrapper for exFAT/Fat Formater
which probably would fit nicely into FS class wrapper.
If you look at the MSCFormatte.ino you will see how we integrated all. Just a couple of notes:
1. myusb.Task() is from USBHost
2. the callback that we set up for USB_MSC has the essenstials for checking whether a new drive is inserted or removed as well as formating.
Sure you all saw all of this but this is also so I remember......
USB Stuff: Most of the history for PFsLib and Partition formatting can be found on this thread: Many TLAs: MTP MSC FS SD SDFat LittleFS UsbMSCFat to work with each other 8) . You will see all the gory details on getting exFAT/FAT formatter working for partitions.
For the volume additional info was needed sdfat primarily on partition sizes, clustercounts etc....
One of the things we did was create a wrapper for exFAT/Fat Formater
Code:
formatter(PFsVolume &partVol, uint8_t fat_type=0, bool dump_drive=false, bool g_exfat_dump_changed_sectors=false, Stream &Serialx=Serial);
If you look at the MSCFormatte.ino you will see how we integrated all. Just a couple of notes:
1. myusb.Task() is from USBHost
2. the callback that we set up for USB_MSC has the essenstials for checking whether a new drive is inserted or removed as well as formating.
Sure you all saw all of this but this is also so I remember......