cancel
Showing results for 
Search instead for 
Did you mean: 

We use USB MSC with STM32F407. It works well but there is one unpleasant issue. When we do "Safe Eject" in Windows, we see the message "safe to remove" but the USB drive is still in the system.

AKoro.9
Associate
 
3 REPLIES 3
Pavel A.
Evangelist III

This is normal. After "safe removal" devices are still visible in Device Manager because the host USB controller still sees them attached.

Does enumeration repeat on the STM32 (device) side after the eject? This would mean that the device disables and re-enables USB detection (some pull-up resistor or whatever). Do not do this.

-- pa

AKoro.9
Associate

But I don't think it is normal. It can be forgiven in Windows, but if you make "safe removal" on a MAC and then unplug the device, a warning message appears that the disk was ejected improperly...

You need to handle properly SCSI_ALLOW_MEDIUM_REMOVAL and SCSI_START_STOP_UNIT- see this explanation by Tsuneo Chinzei https://www.microchip.com/forums/m660180.aspx