cancel
Showing results for 
Search instead for 
Did you mean: 

How to disconnect USB (MSC device)?

dani
Associate
Posted on May 30, 2017 at 06:48

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.

0 REPLIES 0