Skip to content

Add script for initial FTDI EEPROM configuration

Adrian Byszuk requested to merge ftdi_eeprom into master

By default FTDI EEPROMs are empty which means, among other things, that it doesn't have serial number.
This MR adds simple script that allows to program it with some initial config.

(also fix a typo in Si5341 configuration script)

Example script output:

[adbyszuk@nucte25535 py]$ python3 configure_ftdi.py 
Dumping current EEPROM config
000000   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000010   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000020   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000030   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000040   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000050   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000060   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000070   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000080   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000090   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0000a0   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0000b0   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0000c0   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0000d0   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0000e0   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
0000f0   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................


Initializing config:
000000   80 00 03 04 11 60 00 08 c0 4b 08 00 00 00 9a 0e   .....`...K......
000010   a8 22 ca 12 ff ff ff ff 56 ff 04 00 4a 58 43 45   ."......V...JXCE
000020   52 4e 00 44 49 4f 54 20 46 4d 43 20 43 61 72 72   RN.DIOT FMC Carr
000030   69 65 72 20 46 54 34 32 33 32 48 00 ff ff ff ff   ier FT4232H.....
000040   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000050   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000060   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000070   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000080   ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff   ................
000090   ff ff ff ff ff ff ff ff ff ff 0e 03 58 00 69 00   ............X.i.
0000a0   6c 00 69 00 6e 00 78 00 22 03 44 00 49 00 4f 00   l.i.n.x.".D.I.O.
0000b0   54 00 20 00 46 00 4d 00 43 00 20 00 43 00 61 00   T. .F.M.C. .C.a.
0000c0   72 00 72 00 69 00 65 00 72 00 12 03 46 00 54 00   r.r.i.e.r...F.T.
0000d0   35 00 50 00 54 00 49 00 4c 00 4b 00 00 00 00 00   5.P.T.I.L.K.....
0000e0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0000f0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 1c   ................

Writing EEPROM...
...done
Edited by Adrian Byszuk

Merge request reports