libftdi Archives

Subject: Re: usb_open() failed on Windows 10

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 5 Feb 2021 09:21:48 +0800
On Thu, Feb 4, 2021 at 9:24 PM <drfiemost@xxxxxxxx> wrote:
>
> Hello,
>
> is there any special quirk to work on Windows 10?
> I get an error -4 / usb_open() failed, while the same code works fine on 
> Windows 7.
> I have downloaded the drivers from https://ftdichip.com/drivers/d2xx-drivers/
> and the device boots correctly.
> Using libftdi-1.5 with libusb-1.0.24 on a 64 bit machine.
>

In order to use libusb/libftdi under Windows you have to install the
supported driver like WinUSB, you can not use the FTDI vendor
driver.
https://github.com/libusb/libusb/wiki/Windows#Driver_Installation

I believe your Windows 7 machine has the WinUSB driver installed.

You can use Zadig to switch the driver.
https://zadig.akeo.ie/

-- 
Xiaofan

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread