EEPROM CH341A programmer - Read and write data to chip on Linux - LinuxConfig
EEPROM CH341A programmer - Read and write data to chip on Linux - LinuxConfig
1 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
In this tutorial we will use CH341A programmer to read, write and erase data/
firmware on attached chip. This is your getting started guide to CH341A
programmer. CH341A programmer allows users to attach variety of chips in order
to read or backup firmware or overwrite the exiting firmware.
2 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
System Debian/Ubuntu
Software ch341eeprom
3 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
However, after multiple attempts I have not been able to use any of the tools to
recognise my CH341A programmer and the chip. After days of searching I have
settled with ch341eeprom software.
4 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
Step 3 Now navigate to a directory and execute the make command to compile
the source code:
$ cd ch341eeprom
$ make
Step 4 Once you have compiled the software locate the executable ch341eeprom .
Feel free to execute the newly compiled software now. The output should look as
follows:
$ ./ch341eeprom
ch341eeprom - an i2c EEPROM programming tool for the WCH CH341a IC
Version 0.5 copyright (c) 2011 asbokid <[email protected]>
Usage:
-h, --help display this text
-v, --verbose verbose output
-d, --debug debug output
-s, --size size of EEPROM {24c01|24c02|24c04|24c08|24c16|24c32|24c64|24c128|24c256|24c
-e, --erase erase EEPROM (fill with 0xff)
-w, --write write EEPROM with image from filename
-r, --read read EEPROM and save image to filename
Step 5 Insert the EEPROM CH341A programmer with the chip into the USB
5 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
port. Following the above example execute the following commands while
changing command arguments to fit your needs:
$ ./ch341eeprom -v -s 24c128 -e
6 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
Conclusion
In this tutorial, we saw how to read, write and erase data on the chip using
EEPROM CH341A programmer. As already mentioned I was unable to use
standard tools like flashrom to access chip via CH341A programmer. If you have
different experience or other tools to work with EEPROM CH341A programmer
leave the comments below.
7 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
8 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
5 replies
1 reply
1 reply
1 reply
9 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
10 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
Continue Discussion
11 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
12 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
13 of 14 12/4/24, 10:14
EEPROM CH341A programmer - Read and write data to chip on Linux - Linux... https://linuxconfig.org/eeprom-ch341a-programmer-read-and-write-data-to-chi...
14 of 14 12/4/24, 10:14