cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 usb cdc Device Descriptor Request Failed

txmsszd
Associate II
Posted on June 16, 2016 at 19:19

hi,I am tring to use usb virtual port to transmit data to pc.

MCU:STM32F373 100pins

cubemx: usb device fs checked

usb:communication device class

PC: windows 10

heap size: 0x200

stack size :0x400

when i plug usb cable to pc,it can not be recognised.In device manager,it shows Device Descriptor Request Failed. ST VCP driver installed. BTW, when I debug it, it could goes into USB_LP_IRQHandler after MX_USB_DEVICE_Init() excuted.

thanks.
44 REPLIES 44
Posted on September 18, 2017 at 17:55

I can confirm that this works for me on STM32F407 / STM32F4-Discovery. 

My setup

Pins / MiddleWares

USB_Device / Class for FS IP = Communication Device Class..

RCC / HSE = Crystal/Ceramic

USB_OTG_FS / Mode=Device_Only

SYS / Timebase Source = SysTick

(USB_OTG_HS  Disabled)

Clocks

 

As above (PLL_M 8, N 336, P 2, Q 7)

For me the key was setting the 8Mhz and PLL_M=8. CubeMX had for some reason defaulted to 25Mhz / PPL_M=25 that I did not notice.

/Teemu
aurelien2
Associate II
Posted on November 14, 2017 at 10:10

Hello, when I active usb DMA, my board isn't recognized by host. So I suspect DMA in the configuration. Without DMA, virtual serial com port run very well.

Posted on January 27, 2018 at 05:22

This turned out to be the solution to my 'Device descriptor request failed' problem as well.

One more thing I would like to add which was also a problem: I had upgraded the software package for STM32F4 (to V1.19), and CubeMX asked if I wanted to migrate the project to the new package, I clicked yes. The usb CDC did not work until I restarted the project from scratch, with the new STM32F4 package.

Aleksandr S.
Associate II
Posted on March 14, 2018 at 08:54

Hi, All!

I have: HAL version 1.0.0 and SPL)

I just adjusted descriptor:

0x02, /*bDeviceClass*/

0x02, /*bDeviceSubClass*/

It's work on Win10!

roman239955
Associate III
Posted on April 13, 2018 at 22:27

I had this issue and found it was the micro-USB Cable.  After switching cables the USB worked fine.  

Make sure you cut the malfunctioning cable into small pieces to prevent future issues with it.

I have an F407G-Disc1, F411-disco, and F429i-disc1 that all worked after switching cables.