Skip to main content
guigui
Associate II
August 8, 2016
Question

USB Host CDC - USB Attached

  • August 8, 2016
  • 1 reply
  • 515 views
Posted on August 08, 2016 at 20:36

Hello,

I generate code using stm32cube

to make

an USB host CDC. If my device is already plugged, it is not detected. Do you have any solutions to detect it ?

Thank you in advance.

#stm32-usb-cdc-host-attached
This topic has been closed for replies.

1 reply

Walid FTITI_O
Visitor II
August 9, 2016
Posted on August 09, 2016 at 18:26

Hi berland.guillaume, 

Normally the USB core is reset when USBH_Init() is called which allow a successful enumaration . I recommend you check the ''CDC_Standlone'' in USB_Host example list in one of the STM32Cube package. For example

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

at this path:

STM32Cube_FW_F4_V1.13.0\Projects\STM324x9I_EVAL\Applications\USB_Host\CDC_Standalone\

Compare the code there with the generated one, and check if you have not missed somthing.

Another path to check: try to enable the Vbus sensing if disabled.

-Hannibal-