https://github.com/espressif/esp-idf/tr ... e/tusb_msc
The flash storage media is exposed to the application at the beginning. When connecting USB to Win PC, the PC recognized as MSC on Windows Explorer which Flash storage partition exposes to USB Host and does not expose to the application. Ejecting the media in Explorer returns the expose of flash storage media to application.
The problem is, the Flash storage partition doesn't expose (mount) back to application after disconnecting USB cable directly from the Host without ejecting it. Calling this function
does the mount to application side but couldn't find a way to detect USB cable disconnection event.tinyusb_msc_storage_mount(BASE+PATH)
Also, after ejecting media from Win Explorer, the MSC is not showing the dismount of the media on the Explorer. The icon stay as mounted.
Thanks.