libftdi Archives

Subject: Re: ft2232_read() error: couldn't read enough bytes from FT2232 device (0 < 5)

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 29 Mar 2011 17:11:08 +0200
>>>>> "Drasko" == Drasko DRASKOVIC <drasko.draskovic@xxxxxxxxx> writes:

    Drasko> Hi all, I am using libftdi 0.18 with OpenOCD, and when trying to
    Drasko> load some longer file via Amontec USB dongle to my MIPS based
    Drasko> board, I am getting errors like this :

Is behaviour different with 0.17? Maybe its related to the change in
ftdi_read_data() to hunour the usb_read_timeout. With the ongoing
discussion, I think this change introduced by ne was wrong.

Other things to test: 
- Is it a FT2232H or a older devices. There is an error
with the older devices and sending 7 TMS changes in one command. Does
Openocd work around it.
- Are connections flaky?
- Compare the data sent to the FT2232 in the libftdi and livftd2xx
case. Where are the differences?

Otherwise the log is hard to follow. But if you are in RUN/Idle why does
OpenOCD expect top get data back from the device?

Bye
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

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

Current Thread