Skip to main content
Marco1
Associate III
September 29, 2015
Question

ST32F072 USB Simulation of Cable disconnect

  • September 29, 2015
  • 2 replies
  • 620 views
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 !

 

    This topic has been closed for replies.

    2 replies

    Andrei Chichak
    Lead
    September 29, 2015
    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
    Marco1Author
    Associate III
    September 30, 2015
    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 !!