AnsweredAssumed Answered

How to disconnect USB (MSC device)?

Question asked by fekete.danel on May 30, 2017

I have a MSC device, and is working fine (STM32F407 disco):

USBD_Init(&hUsbDeviceFS, &MSC_Desc, DEVICE_FS);

USBD_RegisterClass(&hUsbDeviceFS, &USBD_MSC);

USBD_MSC_RegisterStorage(&hUsbDeviceFS, &USBD_DISK_fops);

USBD_Start(&hUsbDeviceFS);

 

 

How can I disable it from the device? USBD_DeInit, USBD_Stop, USBD_LL_Stop, pulling PA12 low, etc... do not seem to work. The usb drive still shows in the host.

Outcomes