Closed Sotung96 closed 1 year ago
Hello @Sotung96 , I assume that by 'eject' you mean 'disconnect'.
If you want to catch 'usb disconnect' events in your self-powered device, you must implement VBUS monitoring in your hardware. Please refer to this section of our docs : https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/usb_device.html#self-powered-device
You can also experiment with software 'eject' in windows:
Clicking on 'Eject' in Windows should trigger the disconnect action in you application
Answers checklist.
General issue report
Hi all,
I have a project that I need to check the msc eject action. I'm trying to test the msc device example. I uesd the default code to test it but when I eject the msc in PC. There are nothing change. I still can't accesses the ESP MSC by application example. The states is "Storage exposed over USB". Do anyone know how to fix it? Thanks.