Page 1 of 1

USB CDC send flush

Posted: Wed Sep 28, 2016 8:15 pm
by noah
Hello guys

I'm new to chibios/rt so bare with me please.

I want to implement the chibi shell over usb CDC. everything compiles and runs, for one exception: the controller doesnt send the data immediatly to the PC but waits until some kind of send buffer is full and then sends it all to the computer. So if i press enter long enough, i will finally get a response of lines of ch>. commands work as well but there is no immediate echo.

my setup:
chibios 16.1.0
stm32f373
arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2

thanks in advance!

Re: USB CDC send flush

Posted: Wed Sep 28, 2016 8:20 pm
by Giovanni
Hi,

Make sure to take an usbcfg.c from the latest version, there is a flush command in the periodic frame callback.

Giovanni

Re: USB CDC send flush

Posted: Wed Sep 28, 2016 9:05 pm
by noah