Here is yet another CH55x programmer with v1 and v2 bootloader detection and support.
This one combines code from other projects:
vnproch551: https://github.com/NgoHungCuong/vnproch551
used for v2.3 and v2.4 bootloader support
libre551: https://github.com/rgwan/librech551
used for v1.0 bootloader support
added autodetection routine of V1 and V2 bootloaders
No need to specify bootloader version or protocol - chprog should figure it out.
Supported are Write, Verify and Reset for all supported bootloader versions: 1.0, 2.3.1, 2.4.0, 2.5.0
Tested on:
Usage is quite simple:
sudo ./chprog firmware.bin
Make sure your device is connected to USB port on your PC. The bootloader has to be activated by pressing the booloader button (or by shorting the bootloader pins/pads) on your dev board during power-on.
Win64 port Chprog can also also be compiled as a command line tool for Windows 64 bit system. A precompiled binary is in the 'releases' directory.
IMPORTANT: On Windows you need to install a Libusb driver:
macOS port
Chprog can be used on macOS. You need to manually install libusb
driver. The simplest way is using brew, and the build_macos.sh
expect
libusb to be installed by brew.
brew install libusb