Hi all,
I have a product that streams data prefectly fine in LibUSB mode, and now we would like to also support it in CDC mode, but run into the following problem:
I am using TivaWare 2.1.4.178. To better catch the problem, the output data is fixed at 0x55
If the data streaming rate is under 20KB/s, I didn't observe any problem over the weekend.
When the rate is 40KB/s or higher, the data stream will have 0x00 in the data stream once a while, totally random timing, could be 10 minutes to 1 hour apart.
I even add codes before calling USBBufferDataWritten(&g_psTxCDCBuffer, ui32Count) to make sure the all data in buffer are 0x55, and I still observe this 0x00 here and there. (Again, LibUSB mdoe works all the way to 300kB/s without such glitch)
Also, if I change 0x55 to ramp, I confirm that 0x00 simply replaced some real data, for example, the expected data is 1, 2, 3, 4, 5, 6, 7, 8, 9 at where the glitch is observed, it will become something like, 1, 2, 0, 0, 0, 6, 7, 8, 9 (replacing 3, 4, 5 with 0)
Any pointer or suggestion on how to track down this problem? Thanks!