I used STM32F103 to send data to the PC via USB CDC at a frequency of 4000Hz, 21 bytes per packet. The code generated by STMCube. And then I found that only 1000 packets can be received per second on Windows7 via serial assistant, but it can normally receive 4000 packets per second on Ubuntu via CuteCOM. How do I achieve the same effect on Windows7? Thank you.
void HAL_SYSTICK_Callback(void) //4000Hz
I use python to test, and the result is: