[Mikroe NFC USB Dongle] Unable to get the Eclipse C example project working

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

[Mikroe NFC USB Dongle] Unable to get the Eclipse C example project working

跳至解决方案
1,641 次查看
marc1
Contributor II

Hello,

I just bought the Mikroe NFC USB Dongle (with NXP PN7150).  It is provided with a C example software (Here: http://www.nxp.com/documents/software/SW4335.zip). I tested it on Windows 10, with the provided compiled executable: it worked fine.

Then I tested using the corresponding Eclipse C project. Unfortunatelly I was not able to make it working. It compiles well, but when I run it I am blocked in this function:

int HID_API_EXPORT HID_API_CALL hid_write(hid_device *dev, const unsigned char *data, size_t length)

I wait forever at this function call:

res = GetOverlappedResult(dev->device_handle, &ol, &bytes_written, TRUE/*wait*/);

(hid.c, line 612)

Could you explain me how to get rid of this problem?

Thank you !

Marc

标签 (1)
0 项奖励
1 解答
1,498 次查看
jonathan_barnes
Contributor I

I have also seen this exact behaviour in Windows 10. It hangs at the Windows API call.

The workaround seems to be to unplug/replug the USB device and re-run.

This seems necessary after every rebuild.

We also compiled under Ubuntu for comparison, and this does not show the problem.

在原帖中查看解决方案

4 回复数
1,499 次查看
jonathan_barnes
Contributor I

I have also seen this exact behaviour in Windows 10. It hangs at the Windows API call.

The workaround seems to be to unplug/replug the USB device and re-run.

This seems necessary after every rebuild.

We also compiled under Ubuntu for comparison, and this does not show the problem.

1,498 次查看
marc1
Contributor II

Yes. Same behavior here. Thank you for your answer.

0 项奖励
1,498 次查看
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Could you please confirm that you followed all the steps mentioned in the QuickStartGuide_Windows. This file is available in the SW  you are using ?

regards,
Estephania

0 项奖励
1,498 次查看
marc1
Contributor II

Yes, I confirm. The Eclipse C project is not fully stable.

0 项奖励