libftdi Archives

Subject: RE: ftdi_usb_close() error

From: "Michael Plante" <michael.plante@xxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Oct 2010 10:54:39 -0500
Mikael Krus wrote:
>> I have a FT2232H chip where I intend to use interface_B in MPSSE mode.
>> If I use ftdi_set_interface() specifying INTERFACE_B, later on when
>> closing the device I always get an error (-1) but with error string set
>> to: all fine.
>> This only happens with INTERFACE_B not INTERFACE_A.
>> Why does this happen?
>> Am I misunderstanding something?
>> I'll try to attach my piece of code.

You need to call ftdi_set_interface before calling ftdi_usb_open_dev.
You've opened A, but then tried to close B.


libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread