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!
USB CDC send flush Topic is solved
Moderators: RoccoMarco, lbednarz, tfAteba
- 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
Hi,
Make sure to take an usbcfg.c from the latest version, there is a flush command in the periodic frame callback.
Giovanni
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
WOW thank you very much, that solved the problem. I used https://github.com/ChibiOS/ChibiOS/blob/5c953ae7a200b9a2cd7c13f9cecd4d5aa7098d5f/testhal/STM32/STM32F3xx/USB_CDC/usbcfg.c