From 331ae9d7c643b413770e842db0b092dcb8a2f6a8 Mon Sep 17 00:00:00 2001 From: Dien-Nhung Nguyen-Phu Date: Wed, 4 Jun 2025 15:15:49 +0700 Subject: [PATCH] chore: update readme for shorting instruction --- README.md | 16 +- assets/burn-badge.svg | 532 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 546 insertions(+), 2 deletions(-) create mode 100644 assets/burn-badge.svg diff --git a/README.md b/README.md index ac1df59..8e57961 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,20 @@ Install [wchisp](https://github.com/ch32-rs/wchisp?tab=readme-ov-file#installing Download prebuilt binaries from [release](https://github.com/fossasia/badgemagic-firmware/releases) or [the latest development builds](https://github.com/fossasia/badgemagic-firmware/tree/bin). -Make sure the battery is disconnected. Press and hold KEY2 (the button near the -USB port) while plugging in the USB to enter the bootloader. Then run: +Make the chip enter bootloader mode (ISP mode) by power cycling the chip while +the boot pin is pulled down in one of two ways: + +- Disconnect the battery, press and hold KEY2 (the button near the USB port) + while plugging in the USB to enter the bootloader. +- Alternatively, connect the USB, press and hold KEY2, then short and release + the C3 capacitor. + +Then check `dmesg` if the chip has entered the ISP mode with idVendor=4348 and +idProduct=55e0. + +![c3](assets/burn-badge.svg) + +Then run: ```sh wchisp flash badgemagic-ch582.bin diff --git a/assets/burn-badge.svg b/assets/burn-badge.svg new file mode 100644 index 0000000..bef50d2 --- /dev/null +++ b/assets/burn-badge.svg @@ -0,0 +1,532 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +