A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC
C Makefile
Latest commit bcc8f02 Mar 28, 2016 @commandtab Merge pull request #4 from paolo-caroni/master
Add rules for complete access on GNU/Linux
Permalink
Failed to load latest commit information.
ch341docs Initial add of ch341eepromtool_0.5 May 29, 2013
ch341eeprom.xcodeproj
pics
windowsonlysoftware
wiresharkusbsniffing Initial add of ch341eepromtool_0.5 May 29, 2013
.gitignore Add Xcode cruft to gitignore Jul 14, 2013
99-CH341.rules udev.rules for GNU/Linux Mar 28, 2016
COPYING
Makefile
README.md Update README May 29, 2013
ch341eeprom.c
ch341eeprom.h correct max eeprom size and a little reorganization of formatting Mar 25, 2016
ch341funcs.c
mktestimg.c correct the menu for select chipset type Mar 26, 2016

README.md

ch341eeprom

A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC

WinChipHead CH341A based programmer

Requirements

  • llvm and make (via Xcode or Xcode Command Line Tools)
  • libusb (perhaps via Homebrew: brew install libusb)

Compiling

After installing the necessary tools and libusb, building ch341eeprom is as simple as running the included Makefile:

make

Usage

Using ch341eeprom is straightforward:

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|24c512|24c1024}
 -e, --erase            erase EEPROM (fill with 0xff)
 -w, --write <filename> write EEPROM with image from filename
 -r, --read  <filename> read EEPROM and save image to filename

For example:

$ ./ch341eeprom -v -s 24c64 -e

Searching USB buses for WCH CH341a i2c EEPROM programmer [1a86:5512]
Found [1a86:5512] as device [7] on USB bus [2]
Opened device [1a86:5512]
Claimed device interface [0]
Device reported its revision [3.03]
Configured USB device
Set i2c bus speed to [100kHz]
Erased [8192] bytes of [24c64] EEPROM
Closed USB device

Author

Originally written by asbokid and released under the terms of the GNU GPL, version 3, or later. Modifications by commandtab to make it work under OS X.

License

This is free software: you can redistribute it and/or modify it under the terms of the latest GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.