if you build Win32 demo ch.exe and connect to it via TCP/IP using Putty and send a 50 byte line
q1q2q3q4q5w1w2w3w4w5r1r2r3r4r5t1t2t3t4t5y1y2y3y4y5
an unexpected line would reach Shell:
q1q2q3q4q5w1w2w3t2t3t4t5y1y2y3y4
the problem with this line is not that it is truncated, but that at index 17th we are expecting to see 'w4' and we see see 't2', which is at index 33 in the original message
So, 16 bytes get through, they 16 bytes are skipped, then some more bytes get through
more into at http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1750
I've increased SERIAL_BUFFERS_SIZE to 64 and the bytes are not being skipped any more.
Same problem happens with the Linux/Posix build.
Increasing SERIAL_BUFFERS_SIZE to 32 seems to fix it.
Fixed Win32 & Linux builds in repository: r6752
Increased SERIAL_BUFFERS_SIZE to 32
Thanks for fixin, tagging.
Will be fixed in 2.6.4stable, 2.7.0unstable, fixed in repository.