Difference between revisions of "Ftdi"

From ThorstensHome
Jump to: navigation, search
Line 1: Line 1:
 
Ok for [[programming electronics]] I got myself an [[ftdi]] chip. I want to be able to invert the TX/RX/... signals so I can get some experiments working that I have on a paper.
 
Ok for [[programming electronics]] I got myself an [[ftdi]] chip. I want to be able to invert the TX/RX/... signals so I can get some experiments working that I have on a paper.
  
To do this
+
To do this we have to re-program the device's eeprom:
 
* download the ftd2xx library http://www.ftdichip.com/Drivers/D2XX.htm
 
* download the ftd2xx library http://www.ftdichip.com/Drivers/D2XX.htm
 
* download http://svn.icmb.utexas.edu/svn/repository/trunk/zpub/sdkpub/usbkey_dlpd/macosx/d2xx/Samples/EEPROM/write/main.c
 
* download http://svn.icmb.utexas.edu/svn/repository/trunk/zpub/sdkpub/usbkey_dlpd/macosx/d2xx/Samples/EEPROM/write/main.c
 
* compile it using
 
* compile it using
 
  gcc -o write main.c -L/root/Downloads/release/build/x86_64/ -lftd2xx -lpthread -ldl -lrt -Wl,-rpath,/usr/local/lib
 
  gcc -o write main.c -L/root/Downloads/release/build/x86_64/ -lftd2xx -lpthread -ldl -lrt -Wl,-rpath,/usr/local/lib
 +
* remove the ftdi_sio driver
 +
modprobe -r ftdi_sio
 +
* disconnect all other FTDI chips
 +
* call the program to re-write the device's eeprom:
 +
./write
  
 
= See also =
 
= See also =

Revision as of 12:15, 16 December 2012

Ok for programming electronics I got myself an ftdi chip. I want to be able to invert the TX/RX/... signals so I can get some experiments working that I have on a paper.

To do this we have to re-program the device's eeprom:

gcc -o write main.c -L/root/Downloads/release/build/x86_64/ -lftd2xx -lpthread -ldl -lrt -Wl,-rpath,/usr/local/lib
  • remove the ftdi_sio driver
modprobe -r ftdi_sio
  • disconnect all other FTDI chips
  • call the program to re-write the device's eeprom:
./write

See also