AnsweredAssumed Answered

Force OS to re-enumerate mass storage device

Question asked by Mostafa B on Nov 20, 2013
Latest reply on Dec 2, 2013 by Mostafa B

Dear all,

I am developing a mass storage device using STM32F405RG. The number of drives must change dynamically based on a certain event (e.g., a new drive mush show up after pushing a button on the board). I could accomplish this if I could force windows to issue REPORT LUN command again (it is a SCSI command that retrieves the number of logical units on the device). But so far I have had no success.
My current solution is to detach/attach the usb interface using OTG_FS_DCTL register but it causes all volumes to disappear at first and then reappear again. I was wondering if it would be possible to force the operating system to re-enumerate usb devices on the bus without restarting the interface.