



Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!




dpavlin@nuc:/nuc/ch341a$ git clone https://github.com/setarcos/ch341prog Cloning into 'ch341prog'... remote: Counting objects: 104, done. remote: Total 104 (delta 0), reused 0 (delta 0), pack-reused 104 Receiving objects: 100% (104/104), 34.79 KiB | 0 bytes/s, done. Resolving deltas: 100% (61/61), done. Checking connectivity... done. dpavlin@nuc:/nuc/ch341a$ cd ch341prog/ dpavlin@nuc:/nuc/ch341a/ch341prog$ make gcc -std=gnu99 -Wall ch341a.c main.c -o ch341prog -lusb-1. dpavlin@nuc:/nuc/ch341a/ch341prog$ ./ch341prog
Usage: -h, --help display this message -i, --info read the chip ID info -e, --erase erase the entire chip -l, --length manually set length -w, --write write chip with data from filename -r, --read read chip and save data to filename -t, --turbo increase the i2c bus speed (-tt to use much faster speed) -d, --double double the spi bus speed
dpavlin@nuc:/nuc/ch341a/ch341eepromtool_0.5$ gcc -o ch341eeprom ch341eeprom.c ch341funcs.c -lusb- dpavlin@nuc:/nuc/ch341a/ch341eepromtool_0.5$ dpavlin@nuc:/nuc/ch341a/ch341eepromtool_0.5$ ./ch341eeprom ch341eeprom - an i2c EEPROM programming tool for the WCH CH341a IC Version 0.5 copyright (c) 2011 asbokid
This program comes with asbolutely no warranty; This is free software, and you are welcome to redistribute it under certain conditions: GNU GPL v3 License: http://www.gnu.org/licenses/gpl.html
Usage: -h, --help display this text -v, --verbose verbose output -d, --debug debug output -s, --size size of EEPROM {24c32|24c64} -e, --erase erase EEPROM (fill with 0xff) -w, --write write EEPROM with image from filename -r, --read read EEPROM and save image to filename
Example: ch341eeprom -v -s 24c64 -w bootrom.bin
git clone https://github.com/urjaman/flashrom/ git checkout -b origin/ch341a origin/ch341a
dpavlin@nuc:/nuc/flashrom$ sudo apt-get install pciutils-dev
root@nuc:/nuc/i2c-ch341-usb# modprobe i2c-ch341-usb
[Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: output gpio0 gpio=0 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: output gpio1 gpio=1 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: output gpio2 gpio=2 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: output gpio3 gpio=3 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: input gpio4 gpio=4 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: input gpio5 gpio=5 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: input gpio6 gpio=6 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_cfg_probe: input gpio7 gpio=7 irq= [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_i2c_probe: created i2c device /dev/i [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_i2c_set_speed: Change i2c bus speed t [Wed Feb 7 16:37:00 2018] i2c-ch341-usb 2-2.1.4:1.0: ch341_usb_probe: connected [Wed Feb 7 16:37:00 2018] usbcore: registered new interface driver i2c-ch341-usb