aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-01-18 23:38:54 -0700
committerJosh Rahm <joshuarahm@gmail.com>2023-01-18 23:38:54 -0700
commitba47b0e8ae4e5a8b2e21d96b9d8e12ea69c528bf (patch)
treec83b981797b27b484a892b3b6df4bb79b56ba235 /README.md
downloadch-flash-ba47b0e8ae4e5a8b2e21d96b9d8e12ea69c528bf.tar.gz
ch-flash-ba47b0e8ae4e5a8b2e21d96b9d8e12ea69c528bf.tar.bz2
ch-flash-ba47b0e8ae4e5a8b2e21d96b9d8e12ea69c528bf.zip
Initial commit for the ch-flash program.
This program is a fork from https://github.com/frank-zago/isp55e0.git, except that it wait for a device to be connected if one is not present. This makes the flashing process more streamlined.
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..640f961
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+# ch-flash
+
+A program for flashing the CH573 devices.
+
+this is a fork of [](https://github.com/frank-zago/isp55e0.git) with the notable
+difference that it will wait for the CH573 device to be connected if one is not
+connected already.
+
+This has the benefit of not needing to "race the clock" when flashing the device
+because the CH537 (or at least the ones I have) have an unstable usb interface
+and will disconnect and reset after several seconds of being connected to the
+machine.
+
+With this new utility one can run the flash program and then connect the device
+when it will be flashed.
+
+## udev
+
+To flash the device requires some permissions to set up. One can run this flash
+program as root to flash the device, but for those who wish to keep the flashing
+under-privliged, one can add the following udev rules in
+`/etc/udev/rules.d/50-ch573.rules`:
+
+```
+SUBSYSTEM=="usb", ATTR{idVendor}=="4348", ATTR{idProduct}=="55e0", MODE:="0666"
+```
+
+Then run the command:
+
+`udevadm control --reload-rules`