cancel
Showing results for 
Search instead for 
Did you mean: 

ST32F072 USB Simulation of Cable disconnect

Marco1
Associate II
Posted on September 29, 2015 at 20:28

Hi, 

i'm working for usb project with ST32F072 with your example STM32Cube_FW_F0_V1.3.0 (CDC STANDALONE).

I'm trying to simulating a USB disconnect with USBD_DeInit ( &USBD_Device ), but apparently not work ( for PC the USB device is connected).

It's possible to know the way to reset all USB parts (software and hardware) , like a real cable disconnect ?

Sorry for my english !

 

2 REPLIES 2
Posted on September 29, 2015 at 22:22

Your english is fine.

On a previous project, with a processor from another manufacturer who I refuse to advertise for, we took Vbus and brought it into a DIO bit. When the device was unplugged, the DIO would change state and we would tear down the USB stack.

I hope this helps.

Ciao,

Andrei from The Great White North
Marco1
Associate II
Posted on September 30, 2015 at 11:22

Hi, 

thank you for your reply, but i can't find any software configuration part about VBUS detection.

Ciaoo !!