HID USB Communication Failing after exactly 31 sends.

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

HID USB Communication Failing after exactly 31 sends.

1,628 次查看
Dealerz
Contributor I

I'm using MQX 4.0 and I'm having an issue with the USB HID communication trying to send data. My HID layout is a modification of the HID Class driver that's built in, different only that I also need to read data were as the base HID class doesn't perform that. What my issue is, is that when I send data from my hardware (K60F120) after exactly 31 transactions I get an error from the USB_Class_Send_Data() which is transfer in progress. I was told to use the _usb_device_free_XD() but I can't find any documentation on how I'm suppose to use. I'm hoping someone might know of a solution to this.

Thanks in advance.

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

1,446 次查看
Dealerz
Contributor I

With MQX 4.0 on a K21. When I make the call to USB_Class_Send_Data() I get and error code of 0x03 (USB_STATUS_TRANSFER_IN_PROGRESS). I was told I had to call _usb_device_free_XD() but wasn't given a place on where or how to make this function call. This happens on the 31st transmission. How do I resolve this, has anybody else ever seen this?

0 项奖励
回复