Giter Site home page Giter Site logo

demonic098 / ch341eeprom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from command-tab/ch341eeprom

0.0 0.0 0.0 8.73 MB

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

License: GNU General Public License v3.0

C 96.15% Makefile 3.85%

ch341eeprom's Introduction

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}
 -p, --speed            i2c speed (low|fast|high) if different than standard which is default
 -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 command-tab 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/.

Tested

Name Write Read
CAT24M01WI OK OK
AT24C256 OK OK
Microchip 24LC256 OK OK
AT24C32N OK OK
AT24C08 OK OK

ch341eeprom's People

Contributors

command-tab avatar paolo-caroni avatar bibimbop avatar lorf avatar plumbum avatar xjezda00 avatar leo-pl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.