mcci-catena / Arduino_Core_STM32

STM32 core support for Arduino
2 stars 7 forks source link

USB reads sometime return garbage #78

Closed terrillmoore closed 4 years ago

terrillmoore commented 5 years ago

In a long USB command session, whenever you wrap around 256 characters of input, the routine to get the number of bytes available returns a wild number, and Serial.read() similarly returns a bunch of while (somewhat historical) data. I think the problem is that the byte count is wrong, and then Serial.read either returns historical data or the contents of the tx ring buffer.

terrillmoore commented 5 years ago

@dhineshkumarmcci , @Lakshmipriya233 , please see if you can come up with a simple test to duplicate this, so we can know when we've fixed this. Probably it involves a simple app using Catena-Arduino-Platform and sending repeated echo 123456.... commands using cut and paste and TeraTerm.