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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-11-29 10:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-11-30 9:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-02 9:07 PM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-03 12:33 AM
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
