2019-03-21 10:07 AM
Hi, in case someone else have the same issue which is Installed the WIN7 64Bits USB Virtual COM Port cant't start with Code 10,
Software and Library versions,
To correct this, we have to fix the Endpoint IN & OUT Pakcet Size “CDC_DATA_HS_MAX_PACKET_SIZE “within the “usbd_cdc.h�? header file.
OLD
/* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */
#define CDC_DATA_HS_MAX_PACKET_SIZE 512U /* Endpoint IN & OUT Packet size */ //<-- Change 512U to 64U
#define CDC_DATA_FS_MAX_PACKET_SIZE 64U /* Endpoint IN & OUT Packet size */
#define CDC_CMD_PACKET_SIZE 8U /* Control Endpoint Packet size */
NEW
/* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */
#define CDC_DATA_HS_MAX_PACKET_SIZE 64U // 512U /* Endpoint IN & OUT Packet size */
#define CDC_DATA_FS_MAX_PACKET_SIZE 64U /* Endpoint IN & OUT Packet size */
#define CDC_CMD_PACKET_SIZE 8U /* Control Endpoint Packet size */
Save, Recompile and Rebuild your code.
Unplug the USB and re-plug it back it for the USB port Communication recycle , not the ST-Link, the device driver should refresh, and it start working properly.
Hope this helps!
Again, thanks to the ST community for their support, and thanks to Eichel.Dirk for his previous solution which inspired me to this method.