cancel
Showing results for 
Search instead for 
Did you mean: 

USB Host CDC - USB Attached

guigui
Associate II
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
1 REPLY 1
Walid FTITI_O
Senior II
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-