AnsweredAssumed Answered

STM32F2 USB-FS-HID not enumerate to Windows

Question asked by krueger.thomas on May 24, 2014
Latest reply on May 27, 2014 by krueger.thomas
Hi All,

Using the USB-FS HID device example , STM32_USB-Host-Device_Lib_V2.1.0.
Using the FS/Internal PHY with DM DP and VBUS connected to USB Cable.
Using a basic custom board with just a STM32F205, power, JTAG, serial.
Using a 25Mhz crystal for the proc to run at 120Mhz.

I am using the above HID example code with just the LCD removed and debug to serial.

When i plug it into the PC, Windows popsup an error message "USB device not recoqnized". Windows devicemanager shows an "unknown device" with PID/VID "unknown".

The internal 1.5K Pullup on D+  initiates the enumeration by the Host(PC),
but it seems no DeviceDescriptor is transmitted via Endpoint 0, so the Host does not know who "said hello".

The debug output looks like this:

>>>SYS_RESET<<<
SYSCLOCK(PLL):120000000, HCLK(CPU):120000000, PCLK1(APB1):30000000, PCLK2(APB2):60000000
Init
Connected
Reset
Reset
Reset
Reset
Suspended


USB needs a 48Mhz clock. Is there a way to verify the 48Mhz clock ??

Also in the USB init code i saw the following line:
   RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);  ?????

Outcomes