STM32F407 Discovery Board USB CDC FS
Hello,
several days I was trying to implement USB CDC Full speed connection between the discoveryboard and the PC.
I was using Cube MX 4.11.0 in order to generate a project with USB and the existing HAL libraries (Windows 8.1).
My configurations shall be a CDC USB-Device with full speed. I installed the virtual com port driver to display data comeing from the controller in hterm or realterm. In both terminal programs only sometimes it was possible to open the com port. Sometimes I get an internal error, sometimes the terminal program hung up and sometimes I could see receiving data. Really strange behaviour. But I never reaches the full speed. Maximum speed I could measure was about 70 kbytes/s.
Till now I have been reading several forum entries with possible fixes, but nothing really helps. I am really desperate. I don’t know what I can do next.
It seems that the virtual com port driver cannot handle the amount of data I send from the mcu to the pc. In my infinity loop I send a 300 byte array with the following function: CDC_Transmit_FS(buf, 300);. In order to measure the maximum data rate I have no additional delay. I would expect at least a data rate of 500Kbytes/s.
Does anyone have a working example or does anyone know how I can get it working.
Thanks for your help,
Florian