chore: update readme for shorting instruction

This commit is contained in:
Dien-Nhung Nguyen-Phu 2025-06-04 15:15:49 +07:00
parent 2bbecf2b3f
commit 331ae9d7c6
2 changed files with 546 additions and 2 deletions

View File

@ -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

532
assets/burn-badge.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.1 MiB