Question
USB Device VCP Speed issue in STM32F405
Posted on May 30, 2013 at 14:01
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 &sharpifdef USE_USB_OTG_HS &sharpdefine CDC_DATA_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */ &sharpdefine CDC_IN_FRAME_INTERVAL 5 /* Number of micro-frames between IN transfers */ &sharpdefine APP_RX_DATA_SIZE ((8)*1024) /* Total size of IN buffer: in usb_conf.h &sharpifdef USE_EMBEDDED_PHY &sharpdefine USB_OTG_EMBEDDED_PHY_ENABLED // &sharpdefine USB_OTG_HS_LOW_PWR_MGMT_SUPPORT &sharpendif Also the change suggested by bil.til/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Yet%20another%20STM32F1057%20USB%20OTG%20driver%20issue%20%28VCP%20device%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=1168
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 #maximum-output-speed #usb-vcp