Does anybody know what happens in the device stack when you pull the plug out of the PC?
Using modified Kwikstick example for SDCard to USB-MSD. MQX 3.7 or 3.8 on Kinetis
I mount the SDcard at boot. Then, unmount the SDcard when bAttach is detected so MSD and PM don't argue with each other.
Of course, I want to re-mount the SD-card when the Host PC is disconnected.
I have some problems with Windoze adding lots of generic storage devices until it finally realises what it is looking at, but my USB analyser is on its way. So in the meantime, I thought I'd dig through the drivers to see what happens when the plug is pulled, and if there is a callback for that.
Haven't found it so far.