libusb error -12

BERTRAND Joël joel.bertrand@systella.fr
Tue Nov 26 12:15:07 GMT 2024


	Hello,

	I'm trying to build a little piece of code that comes from NetBSD.
Target is Windows 10 Enterprise (64 bits) and up to date Cygwin.

	My code is linked with readline, and statically linked with a
cryptographic library, sqlite and libcyusbserial (a Cypress library that
is provided by Cypress). I have build libcyusbserial on NetBSD and Linux
and both libraries run as expected. This last library uses libusb 1.0.

	Under cygwin, I have built my program without trouble, but it is not
usable.

$ lsusb
...
Bus 001 Device 003: ID 04b4:0004 Cypress Semiconductor Corp.
Bus 001 Device 003: ID 04b4:0004 Cypress Semiconductor Corp.
...

	Device appears twice as is contains two different end points. Now, I
try to run my code.

$ ./sonde 1
...
CY:Error in opening the device... Libusb error is -12
CyGetDeviceInfo failure (3)

	I have tried to execute this code as administrator with the same
result. I don't understand why lubusb returns an error.

	Help will be welcome,

	JKB

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://cygwin.com/pipermail/cygwin/attachments/20241126/f6255188/attachment.sig>


More information about the Cygwin mailing list