libftdi Archives

Subject: Re: overwrite the current EEPROM of a FT232RL

From: "Johannes D." <j_deutsch@xxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sun, 3 Jul 2011 08:51:54 -0700 (PDT)
Uwe Bonnes wrote:
> 
> 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? 
> 

Sorry, but i altered so much while i was trying to change the settings in
the eeprom, that i can't remember precisely what i did. Everything was done
by trial and error...

-------------------------------------------------

But now after your hints everything is fine. I wrote a little program which
calls the following functions in this order

    - ftdi_new()
    - ftdi_usb_open_desc(ftdic, 0x0403, 0x6001, NULL, NULL)
    - ftdi_eeprom_initdefaults(ftdic, "FTDI", "UM232R USB <-> Serial", NULL)
    - ftdi_set_eeprom_value(ftdic, CBUS_FUNCTION_2, CBUS_CLK6)
    - ftdi_set_eeprom_value(ftdic, MAX_POWER, 100)
    - ftdi_eeprom_build(ftdic)
    - ftdi_erase_eeprom(ftdic)
    - ftdi_write_eeprom(ftdic)
    - ftdi_usb_close(ftdic)
    - ftdi_free(ftdic)

Now the eeprom looks like

        0x000: 00 40 03 04 01 60 00 06  80 32 08 00 00 02 98 0a .@...`.. 
.2......
        0x010: a2 2c ce 02 23 19 05 00  0a 03 46 00 54 00 44 00 .,..#... 
..F.T.D.
        0x020: 49 00 2c 03 55 00 4d 00  32 00 33 00 32 00 52 00 I.,.U.M. 
2.3.2.R.
        0x030: 20 00 55 00 53 00 42 00  20 00 3c 00 2d 00 3e 00  .U.S.B.  
.<.-.>.
        0x040: 20 00 53 00 65 00 72 00  69 00 61 00 6c 00 02 03  .S.e.r. 
i.a.l...
        0x050: 02 03 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ 
........
        0x060: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ 
........
        0x070: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 d5 b9 ........ 
........
        0x080: 2a 04 d5 fb 00 00 33 a5  12 60 42 00 00 00 00 00 *.....3. 
.`B.....
        0x090: 00 00 00 00 00 00 00 00  36 41 44 51 31 57 34 4c ........ 
6ADQ1W4L

Not exactly the original one, but it works for now.

So, thank you very much for your time
and kind regards

Johannes

--
View this message in context: 
http://libftdi.141977.n3.nabble.com/overwrite-the-current-EEPROM-of-a-FT232RL-tp3130354p3135100.html
Sent from the libFTDI mailing list archive at Nabble.com.

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

Current Thread