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.
Regards, Hannes _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
