[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H

From: Hannes Weisbach
Subject: Re: [avrdude-dev] [patch #7486] Patch to add FT2232C/D, FT2232H, FT4232H, usbvid, usbpid, usbdev for USB support - Based on #7062
Date: Thu, 25 Aug 2011 12:07:22 +0200

Am 25.08.2011 um 00:25 schrieb Jason Hecker:

>> avrftdi.c:96 avrftdi_flush() ftdi_read_data(&ftdic, buf, 1) != 1: Device busy
>> (16)
> I too ran into this problem and fixed it by deleting the function
> avr_flush() and replacing the only call to avr_flush() with:
> E(ftdi_usb_purge_buffers(&ftdic));
> Worked like a charm.
> (Disclaimer - 'worked like a charm' with the development
> libftdi/libusb-1.0 but should work with the older version).
According to libftdi documentation ftdi_usb_purge_buffers() does what 
avrftdi_flush was intended for. I wasn't aware of the purge functions, but they 
are the better solution. However, ftdi_read_data() shouldn't fail either.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]