USB CDC send flush Topic is solved

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

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
noah
Posts: 6
Joined: Wed Sep 28, 2016 8:09 pm
Been thanked: 2 times

USB CDC send flush

Post 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!
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: USB CDC send flush

Post 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
noah
Posts: 6
Joined: Wed Sep 28, 2016 8:09 pm
Been thanked: 2 times

Re: USB CDC send flush

Post by noah »

Post Reply