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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
747 Views
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

Labels (1)
0 Kudos
1 Solution
604 Views
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.

View solution in original post

4 Replies
605 Views
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.

View solution in original post

604 Views
marc1
Contributor II

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

0 Kudos
604 Views
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 Kudos
604 Views
marc1
Contributor II

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

0 Kudos