Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] libusb_open fails with error code -4 #99

Open
Vauteck opened this issue Aug 19, 2019 · 0 comments
Open

[Windows] libusb_open fails with error code -4 #99

Vauteck opened this issue Aug 19, 2019 · 0 comments

Comments

@Vauteck
Copy link

Vauteck commented Aug 19, 2019

Hello,

I cross-compiled libusb and the imx_usb utility for windows (mingw64 toolchain), but an error occurred as it was trying to open the imx_device after detecting it ( -4 DEVICE_NOT_FOUND ).

I got rid of the problem by commenting out the libusb_free_device_list unref call (right after find_imx_dev).
As it's stated in the libusb documentation, "Be careful not to unreference a device you are about to open until after you have opened it."

I'm surprised I'm the only one reporting this, am I missing something ?

Tested on windows 7 64 bit and windows 10 64 bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant