AnsweredAssumed Answered

USB Device VCP Speed issue in STM32F405

Question asked by ofri.igal on May 30, 2013
Latest reply on Jul 1, 2013 by ofri.igal
Hi,

I use STM32F405RG and the VCP driver from ST. I use USE_USB_OTG_HS,
USE_EMBEDDED_PHY
The changes I made to the ST driver are as followed:
in usbd_conf.h
#ifdef USE_USB_OTG_HS
 #define CDC_DATA_MAX_PACKET_SIZE       64  /* Endpoint IN & OUT Packet size */
 #define CDC_IN_FRAME_INTERVAL          5   /* Number of micro-frames between IN transfers */
 #define APP_RX_DATA_SIZE               ((8)*1024) /* Total size of IN buffer:

in usb_conf.h
 #ifdef USE_EMBEDDED_PHY
   #define USB_OTG_EMBEDDED_PHY_ENABLED
//   #define USB_OTG_HS_LOW_PWR_MGMT_SUPPORT
 #endif

Also the change suggested by bil.til here I believe it applies to F405 as well.


I send 960 bytes every 3.18msec (using VCP_DataTx) but I keep getting USBD_BUSY in VCP_DataTx.

I'm communicating with PC, I tried using Docklight, AccessPort and my own application in Visual Studio standard COM port (Readfile of winapi)

Any suggestions?

and on a different note, what is "CDC_IN_FRAME_INTERVAL" mentioned in usbd_conf.h?

APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL*8 */

Many thanks

Outcomes