libftdi Archives

Subject: Re: FT232RL eeprom read and write

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: RAVJEET <ravjeet@xxxxxxxxx>
Date: Thu, 19 May 2016 22:42:25 +0200
Hi Ravjeet,

Am 18.05.2016 um 07:50 schrieb RAVJEET:
> HI,
> I require help to read and write entire data from one ft232rl into another 
> ft232rl.
> I do not have much knowledge about linux so will require step by step help.

first step: Build the latest libftdi 1.3rc1 from source
or use at least libftdi 1.2.

For a raw copy of the eeprom content,
create a "ftdi_eeprom.conf" config file like this:

##################################################
filename="eeprom.copy"  # Filename to save eemrpon config
eeprom_type=3           # number three is for type R chips
flash_raw=true          # raw copy of unmodified image
##################################################

- find your USB device id using "lsusb" command.
  Adjust the cmdline below if it's not the default 0x0403:0x6001

- Read out current eeprom. Will save to "eeprom.copy" file

  ./ftdi_eeprom --device i:0x0403:0x6001 --read-eeprom ftdi_eeprom.conf


  This should give you a "eeprom.copy" file with 128 bytes
  for type R chips.

- Unplug chip and plug in other chip. Flash the device

  ./ftdi_eeprom --device i:0x0403:0x6001 --flash-eeprom ftdi_eeprom.conf


You might have to adapt the USB vendor/device id
and the path to ftdi_eeprom according to your specific siuation.

Best regards,
Thomas


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

Current Thread