The transfer large amounts of data through the USB CDC
Moderators: RoccoMarco, lbednarz, tfAteba
The transfer large amounts of data through the USB CDC
I use chprintf and SerialUSBDriver, to transmit data to a computer. If frequently (10 Hz) to transmit the string longer than the size of the end point (64 bytes by default), the device hangs at an arbitrary moment. If transmit data infrequently (1 Hz) or less than the size of the end point, everything is normal. I probably did not properly use SerialUSBDriver, how to do it right?
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: The transfer large amounts of data through the USB CDC
Enable debug options in chconf.h and see if something is caught.
Info here: http://www.chibios.org/dokuwiki/doku.ph ... ebug_guide
Giovanni
Info here: http://www.chibios.org/dokuwiki/doku.ph ... ebug_guide
Giovanni
Re: The transfer large amounts of data through the USB CDC
I used GDB, to see the backtrace at the time when the microcontroller enters an infinite loop. And I see what happens assert failed because of a timeout communication I2C. Apparently I put too small a timeout and data transfer via USB microcontroller is too loaded. I increased the timeout and it worked. Thanks. Sorry.