Hi All,
I implement the usb mass storage device using uSD card in LPC4357 board and I use Keil USB Stack.
Now there is an issue that the usb mass storage device can't be removed from PC(Win 7). The usb mass storage device should have disappeared after I removed the device safely by clicking the Safely Remove Hardware tray icon.
I assume that the Keil USB Stack would receive a event from hardware driver or ISR anyhow and handle this event. So What I missed?
It is safe, as this action just forces Windows to write any cached data to media, before it can be removed.
Not sure Windows tells the device anything, you might get a Medium Eject/Unload command, but it is mainly flushing it's buffers, historically it hasn't supported ejecting NTFS media well.