libftdi Archives

Subject: Re: overwrite the current EEPROM of a FT232RL

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sat, 2 Jul 2011 00:12:56 +0200
>>>>> "Johannes" == Johannes D <j_deutsch@xxxxxx> writes:

    Johannes> Hi, first of all, i hope i'm at the right place to get my
    Johannes> semi-geek problem solved.

    Johannes> I just wanted to reconfigure the cbus pins of my UM232R
    Johannes> (FT232RL). So i tried to get this done with ftdi_eeprom.

    Johannes> But now, after i tried it for a while, the current eeprom
    Johannes> looks like this

    Johannes>   libftdi-1.0/examples# ./eeprom Chip type 3 ftdi_eeprom_size:
    Johannes> 128 0x000: 00 00 03 04 01 60 00 02 80 00 00 00 00 00 94 0a
                                           ^^^^^
You somehow managed to write a the EEPROM content for at old FT232 style
device.  How did you do it? Did you poke with ftdi->eeprom->xx direct? 

Can you still erase it? Try also with mprog or ftprog.

The normal sequence is
- Open the device, now libftdi knows the type
- ftdi_eeprom_initdefaults(ftdi, ...) . libftdi should set the right
defaults depending on type
- Set all non standard values. If you compare DS_FT232R.pdf, 8. Internal
EEPROM Configuration with DS_UM232R.pdf 9 Internal EEPROM Configuration
you would need
 ftdi_eeprom_initdefaults(ftdi, "FTDI", "UM232R USB <-> Serial",<serial>);
 ftdi_set_eeprom_value(ftdi, MAX_POWER, 100);
 ftdi_set_eeprom_value(ftdi, MAX_POWER, 100);
 ftdi_set_eeprom_value(ftdi, CBUS_FUNCTION_2, CBUS_PWREN);
 ftdi_set_eeprom_value(ftdi, CBUS_FUNCTION_3, CBUS_PWREN);
- ftdi_erase_eeprom(ftdi) to erase the EEPROM and determine it's size.
- ftdi_write_eeprom(ftdi);

Now you should be able to  read the new values.

Good luck, and keep us informed.

-- 
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