eblot / pyftdi

FTDI device driver written in pure Python
Other
509 stars 212 forks source link

config.py -l raw won't work #337

Open mc3359 opened 1 year ago

mc3359 commented 1 year ago

Trying to write raw content section into blank EEPROM from INI (the file below is ee_gw1646_886657.hex) file won't work. The eeprom won't write at all. Without -l raw switch it would write as expected. The version of pyftdi is 0.54.0 (2022).

The reason I want to use raw mode write because some data were not correct in the raw section.

WITH -l raw switch

i@raspberrypi:~/Projects/pyftdi $ ftconf.py ftdi://ftdi:232h:1:5a/1 -i ee_gw1646_886657.hex -l raw -u Invalid CRC or EEPROM content pi@raspberrypi:~/Projects/pyftdi $ ftconf.py ftdi://ftdi:232h:1:5a/1 -x Invalid CRC or EEPROM content 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 ................

WITHOUT -l raw switch

pi@raspberrypi:~/Projects/pyftdi $ ftconf.py ftdi://ftdi:232h:1:5a/1 -i ee_gw1646_886657.hex -u Invalid CRC or EEPROM content pi@raspberrypi:~/Projects/pyftdi $ ftconf.py ftdi://ftdi:232h:1:5a/1 -x 000000 10 00 eb 2b 46 01 00 09 c0 00 08 00 00 00 a0 14 ...+F........... 000010 b4 14 c8 0e 00 00 00 00 00 00 80 00 00 00 00 00 ................ 000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000a0 14 03 47 00 61 00 74 00 65 00 77 00 6f 00 72 00 ..G.a.t.e.w.o.r. 0000b0 6b 00 73 00 14 03 47 00 57 00 31 00 36 00 31 00 k.s...G.W.1.6.1. 0000c0 34 00 36 00 2d 00 42 00 0e 03 38 00 38 00 36 00 4.6.-.B...8.8.6. 0000d0 36 00 35 00 37 00 00 00 00 00 00 00 00 00 00 00 6.5.7........... 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 a9 47 ...............G