USB packet not sent if size equal to buffer size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB packet not sent if size equal to buffer size

1,602 次查看
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

标签 (1)
2 回复数

1,226 次查看
freuz
Contributor II

Can anyone help me in this issue ?

0 项奖励
回复

1,226 次查看
freuz
Contributor II

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