command-tab / ch341eeprom

A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC
GNU General Public License v3.0
149 stars 58 forks source link

Error reading/writing #5

Closed romespud closed 8 years ago

romespud commented 8 years ago

Hello!

I have a problem when reading/writing eeprom in ch341eeprom program. Please help me. attach.zip

In the attachment original.bin - firmware in the chip. read.bin - firmware read ch341eeprom read.log - the output of ./ch341eeprom -v -s 24c08 -d -r read.bin > read.log

paolo-caroni commented 8 years ago

Hi romespud, reading and writing for chipset different to 24c32 and 24c64 are under development and with bug. The original author of the project never implemented it, it's added by a de-comment the incomplete and bugged source since commit (https://github.com/commandtab/ch341eeprom/commit/7aad8e93bc98836cb7d53baef6e59b6e6634c9a6#diff-af9405206bb66f08e127908d895e514b).

However as you can see on the file ./wiresharkusbsniffing/sniffed.txt the "documentation" isn't complete. If you have time and competence you can help on reverse engineering the windowsonlysoftware. I have recently improved the mktestimg program for a better debugging, but I'm not a programmer, for me is only a hobby, and this for the moment is the better I can do.

Hope to be useful, cheers, Paolo

paolo-caroni commented 8 years ago

Hi romespud, maybe you can try the patch/fork of plumbum (https://github.com/plumbum/ch341eeprom). For me have correct the problem in reading on a 24c02 and probably can fix your problem.

Cheers, Paolo

romespud commented 8 years ago

Problem solved. Thanks for the help.