Open Asanga-Viraj opened 3 days ago
Hi @Asanga-Viraj, thanks for the feature request.
The MSC Host driver formats the connected flash drive only during the driver initialization, by calling msc_format_storage function.
The function is static though. A workaround for your case right now, would be to force-trigger formatting by calling directly this function.
Although, are planning to add a public API for formatting, as you are suggesting. The development is planned following months. I will keep this issue open for tracking.
Thanks @peter-marcisovsky .
Answers checklist.
General issue report
I am using idf 5.0.7 for software development to use in the module ESP32-S3. I have an application to mount file system on USB Flash drive. At some stage, I have to format the USB drive while is connected to ESP32-S3. But there is no function to do it in ESP. I checked with the idf source code and there are options for SD Card and FLASH, but not for USB MSC.
Is there any other way to format the USB stick or this option is going to add to idf in near future?
Thanks.