USB-CDC throughput on STM32F407

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Brrzzt
Posts: 5
Joined: Wed Apr 25, 2012 11:54 am

USB-CDC throughput on STM32F407

Post by Brrzzt »

Hi everybody,

I'm currently exploring the STM32F407 CPU using an Olimex STM32-P407 development board.
I checked out ChibiOS via SVN and adapted the project located in testhal/STM32F4xx/USB_CDC to work with the P407.
USB-CDC runs fine on the full speed port (It's the USB-A connector on the P407), it connects and I can talk with the device
in both directions.
After I got there, I wanted to see throughput and added a thread which does nothing more than pushing characters through
USB (using chOQWriteTimeout() on the USB port's outqueue), so it's unidirectional from Microcontroller to PC. It works so far,
but no matter what I try, the throughput speed does not rise above 64000 bytes/sec. To me, it looks like as if something is
limiting transmission speed to exactly that value (should be 1000 USB packets per second), but I couldn't figure out why this happens.

Any help and/or ideas on how to increase throughput are very appreciated.

All the best,

Gerhard
Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm

Re: USB-CDC throughput on STM32F407

Post by Abhishek »

Hi Gerhard,

There's currently a discussion going on for optimisation for the USB driver, though it'a currently only for general USB interface via LibUSB. You may like to follow it in the Development section in 'example interfacing STM32F4Discovery via Libusb'.

Abhishek
Brrzzt
Posts: 5
Joined: Wed Apr 25, 2012 11:54 am

Re: USB-CDC throughput on STM32F407

Post by Brrzzt »

Hi Abhishek,

I do like to follow that discussion and will take a look into dev section in parallel to this thread here. Thanks for this hint!

Gerhard
Post Reply