USB packet not sent if size equal to buffer size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB packet not sent if size equal to buffer size

1,103 Views
freuz
Contributor II

Hi all,

I'm using KM20DN512 in USB slave device connected to a windows PC with winUSB driver.

I use the original MQX 4.0 usb device driver with endpoint buffer size to 64bytes in BULK. In according to CDC example demo, I send a zero lenght packet if the modulo of data size to send is equal to endpoint buffer size (data size % 64 == 0). But my problem is if the data size to send is exactly equal to endpoint buffer size, the data packet is not sent (I see no data transaction with the USB sniffer ie TotalPhase Beagle) and I only see the zero lenght packet. In other words, the data packet is sent if size >64 or size<64, not sent if size==64. I have already read and post on this thread with no satisfying answer: https://community.freescale.com/message/304117#304117

Someone have any idea to finally solve this issue?

Thanks!

Frédéric Parent

Labels (1)
2 Replies

727 Views
freuz
Contributor II

Can anyone help me in this issue ?

0 Kudos
Reply

727 Views
freuz
Contributor II

Finally, I found the problem... with WinUSB.