Page 1 of 1

USB-CDC throughput on STM32F407

Posted: Mon Jul 16, 2012 10:26 am
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

Re: USB-CDC throughput on STM32F407

Posted: Mon Jul 16, 2012 10:34 am
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

Re: USB-CDC throughput on STM32F407

Posted: Mon Jul 16, 2012 10:38 am
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