cancel
Showing results for 
Search instead for 
Did you mean: 

I am having trouble making a USB-CDC host work on a STM32F407 chip. The primary problem is it seems to get stuck in an endless loop in the CDC state ENUMERATION. I originally built the code using the STM32Cube application.

BBert
Associate III

I will mention at this point that I am connecting to a known working CDC device. I know it is working because I can connect the same port to a PC, and it enumerates properly, and I can pass data to/from the device.

In module usbh_core.c function USBH_Process() the state HOST_ENUMERATION gets set but fails to complete. That is, the call to 'status = USBH_HandleEnum(phost);' never returns USBH_OK so the process times out and the state gets set back to HOST_IDLE.

Has anyone seen this problem before?

1 REPLY 1

Hello @BBert​ ,

You can refer to the following example provided under the F4 Firmware Package:

  • Path: Projects\STM32469I-Discovery\Applications\USB_Host\CDC_Standalone

I hope this helps.

BeST Regards,

Walid