ESP32-S3 USB MSC and FatFs coexistence
Posted: Sun Jul 09, 2023 11:43 am
We're working on an ESP32-S3 project that uses EMMC flash with FAT32 file system that runs on the ESP32.
The EMMC is also accessed by USB MSC when plugged into the PC.
As far as I understand, FatFs that runs on the ESP cannot coexist with MSC.
The idea is to unmount the EMMC and finalize the EMMC transactions gracefully before MSC takes control of the EMMC.
From what we've seen, the MSC takes over the EMMC at the moment the USB is plugged-in without any notification.
What is the best strategy to implement this switchover?
Thanks
Greg
The EMMC is also accessed by USB MSC when plugged into the PC.
As far as I understand, FatFs that runs on the ESP cannot coexist with MSC.
The idea is to unmount the EMMC and finalize the EMMC transactions gracefully before MSC takes control of the EMMC.
From what we've seen, the MSC takes over the EMMC at the moment the USB is plugged-in without any notification.
What is the best strategy to implement this switchover?
Thanks
Greg