>>>>> "Sébastien" == Sébastien Bourdeauducq 
>>>>> <[email protected]> writes:

    Sébastien> Hi, Le Sat, 25 Sep 2010 22:58:31 +0800, Yanjun Luo
    Sébastien> <[email protected]> a écrit :
    >> I soldered two boards and all of them works!

    Sébastien> Congratz! :)

    >> When insert to my laptop, there are two devices appeared as
    >> /dev/ttyUSB0 and /dev/ttyUSB1. It seems that both two ports are
    >> worked as serial ports.

    Sébastien> Hmm is that normal? I guess the EEPROM needs to be programmed
    Sébastien> so one port acts as UART and the other as JTAG, no? And does
    Sébastien> the Linux driver recognize FTDI JTAG ports as serial ports?

That is normal.  Without EEPROM, or with empty EEPROM, the FT2232H offers
two UART channels. MPSSE mode is always set by sending the Set_BIT_MODE(?)
command, so no need to program the EEPROM for that. See the data sheet
4.13.1 "Di I need an EEPROM". However it is handy to
set MANUFACTURER, DESCRIPTION and SERIAL to something sensible, to
distiguish between several devices connected at the same time. My xc3sprog
allows to set these parameter on the command line to select one single
device. xc3sprog should also work out of the box, probably with "-c ftdi".

If you don't want to use the FTDI windows tools to program the EEPROM, have
a look at the eeprom.c example in git libftdi, in the eeprom branch.
git checkout -b eeprom-new origin/eeprom-new. 

Bye
-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Twitter: www.twitter.com/milkymistvj

Reply via email to