I am programming STM32F373RCT and I have been trying to make a USB virtual comport device. if I send data up to about 960 bits per second (I used a timer (50Hz) and I transmit 14 bytes in every cycle), communication is working correctly but if I try to send data more than this, some data lost. I have to increase data transmission speed. How do I increase?
I found the problem. In my code, 3 timers interrupts are active and they set as high priority. USB Interrupt was set as low priority. when USB connected to computer, the new code will stop the timers' interrupts. USB communication is stable now. Thanks a lot for your comment.