Question
Problem with USB Virtual Com Port STM32f103c8t6
I am trying to send data to the console using the "echo" method.
static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len)
{
CDC_Transmit_FS(Buf,*Len);
USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
USBD_CDC_ReceivePacket(&hUsbDeviceFS);
return (USBD_OK);
}
I pass a random value but I see a doubled value in the terminal.

How can I fix it?
