AnsweredAssumed Answered

FS usb on STM32F3

Question asked by bandari.franck on Mar 7, 2014
Latest reply on Mar 8, 2014 by bandari.franck

I have implemented an CDC class on STM32F3 discovery board with the USB-FS library and it works fine.
I'm processing data all the time in a while loop that has a frequency of about 50 Khz.After processing i send my data by USB.  USB connection (VCP 115kbps) was ok and not disturb my processing.
So i wanted to verify if i can send my data at 50 Khz. For that purpose, i took a variable that i increment each time and then sent by USB.

In the PC side, i store my received data into a file. My problem is that some data are jumped, i tried two ways to resolve this issue:
1) I tried to reduce the loop frequency by adding some delay and when i get ~10 Khz, i can receive all my data but it want it at 50Khz.
2) I tried to increase the baud rate but with no success. Normally the USB 2.0 supposed to support the high frequency.

Do you have please any explanation to this?
Thanks in advance;