Open rtek1000 opened 6 months ago
@rtek1000 By default, if you set esp_vfs_fat_mount_config_t->format_if_mount_failed = true
, the driver will internally format the udisk only when mounts failed (happens when udisk FAT files is bronken)
If you want to force trigger the format operate, please refer msc_format_storage
For the 2 USB Host ports requirement, you may get interests of the USB Hub support. https://github.com/espressif/esp-idf/issues/12554
Is your feature request related to a problem?
Hello, I did a project with STM32F407VGT6, but I'm interested in trying the ESP32-S3 instead of the STM32.
For this I need 2 USB Host ports, so I thought about using 2 ESP32-S3, or some converter like CH376 (but it seems that this IC does not have Udisk formatting in the internal firmware).
One USB port for keyboard with integrated touchpad, which the ESP32-S3 can already operate. And another port for Udisk, but I also need the formatting function.
Describe the solution you'd like.
If there is already an option to format Udisk, is there any specific documentation or example code?
Describe alternatives you've considered.
Perhaps the Udisk formatting functions of the STM32 code (FatLib) could be adapted for the ESP32-S3
Additional context.
Code I used for STM32F4: