libftdi Archives

Subject: Re: EEPROM handling work

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 15 Sep 2010 19:24:39 +0200
>>>>> "DJ" == DJ Delorie <dj@xxxxxxxxxxx> writes:

    >> I hopefully will get back soon a batch of 26 boards with FT2232H and
    >> blank 93x66 on it.  So no easy way to tweak in that case.

    DJ> Understood, but I've got a box of 500 boards with FT232R on them to
    DJ> deal with...  and I need the unique serial numbers.

With "unique serial number" you mean information located above 0x7f (or
16-bit word 0x3f)? New EEPROM code reads out that area and provides read access
to it via ftdi->eeprom->buf, but doesn't try to write and doesn't allow to
write above Byte 0x8f.

Here output of my "eeprom" example on a FT232R after some write :
# ../examples/eeprom  -p 0x6001
Chip type 3 ftdi_eeprom_size: 128
0x000: 00 40 03 04 01 60 00 06  80 2d 08 00 00 02 98 0a .@...`.. .-......
0x010: a2 16 b8 0a 23 10 05 00  0a 03 49 00 4b 00 44 00 ....#... ..I.K.D.
0x020: 41 00 16 03 4c 00 4c 00  42 00 42 00 43 00 5f 00 A...L.L. B.B.C._.
0x030: 43 00 4f 00 4e 00 4e 00  0a 03 30 00 30 00 30 00 C.O.N.N. ..0.0.0.
0x040: 32 00 02 03 00 00 00 00  00 00 00 00 00 00 00 00 2....... ........
0x050: 00 00 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 58 e5 ........ ......X.
0x080: 25 04 da fb 00 00 fd 51  32 80 42 00 00 00 00 00 %......Q 2.B.....
0x090: 00 00 00 00 00 00 00 00  38 41 4a 53 57 47 44 4a ........ 8AJSWGDJ
VID:     0x0403
PID:     0x6001
Release: 0x0600
Bus Powered:  90 mA
Manufacturer: IKDA
Product:      LLBBC_CONN
Serial:       0002
Checksum      : e558
Internal EEPROM
PNP: 1
Channel A has Mode UART VCP
C0 Function: TXLED
C1 Function: RXLED
C2 Function: TXDEN
C3 Function: PWREN
C4 Function: SLEEP


"SERIAL" is the same number as with put visual on the board.

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