libftdi Archives

Subject: #TXE stuck high in FT2232HL Sync 245 Fifo mode

From: Graeme Woollett <g.woollett@xxxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Jun 2012 14:03:00 +1200
A couple of years ago someone on this list had a problem similar to
mine.  There was no reply to it.

code-

    if (ftdi_usb_open(&ftdic, 0x0403, 0x6010) < 0)
        ftdi_fatal (&ftdic, "Can't open ftdi 2232HL");
    else
         printf("Found FT2232HL Chip\n");

    if (ftdi_set_bitmode(&ftdic, 0xFF, BITMODE_SYNCFF) < 0)
        ftdi_fatal (&ftdic, "Can't enable 245 Sync FIFO mode");

The code finds the FT2232HL chip puts it successfully into  synchronous
245 mode - the 60 Mhz clock is present.
The FT2232 is connected to a spartan 6 fpga.  I can read from it data
that the PC has sent, the #RXF pin is fine.

But I can't write anything from the FPGA to the FT2232HL because #TXE is
stuck high and only goes low after a reset.

Both hardware ports in the EEPROM are set to 245 mode.

I've tried using FTDI DXX as per their app note and libusb, the result
is the same.

Help ?

--
Graeme Woollett
IMD Group
Industrial Research Ltd
64 4 931 3193
email g.woollett@xxxxxxxxxx


________________________________

This electronic transmission and any documents accompanying this electronic 
transmission contain confidential information belonging to the sender. This 
information may be legally privileged. The information is intended only for the 
use of the individual or entity named above. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution 
or the taking of any action in reliance on or regarding the contents of this 
electronically transmitted information is strictly prohibited.

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

Current Thread