AnsweredAssumed Answered

STM32F405RG VCP error "This device cannot start(code 10)"

Question asked by Ed_B on Jul 25, 2013
Latest reply on May 11, 2016 by so.yc
Hi !

When running the VCP USB Stack (STM32_USB-Host-Device_Lib_V2.1.0) on my STM32F4 i got an error code on my Win7 x64 sytem.

"This device cannot start(code 10)"

I'm using the USB HS Port on PORTB in FS mode.

Finally i found a solution for it. The source code of the file usbd_conf.h must be changed in the following way:

Old:
/* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */
#ifdef USE_USB_OTG_HS
 #define CDC_DATA_MAX_PACKET_SIZE       512  /* Endpoint IN & OUT Packet size */
 #define CDC_CMD_PACKET_SZE             8    /* Control Endpoint Packet size */

New
/* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */
#ifdef USE_USB_OTG_HS
 #define CDC_DATA_MAX_PACKET_SIZE       64  /* Endpoint IN & OUT Packet size */
 #define CDC_CMD_PACKET_SZE             8    /* Control Endpoint Packet size */

This change is only necessary when using the HS USB in FS mode.

Regards,

Ed

Outcomes