Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading
Loading