flashing nyx badge

your badge has a CH582, a neat little RISC-V BLE MCU. supposedly, firmware dumping is disabled (confirm/deny, anyone?) but flashing over USB is enabled, once you put it in DFU mode

this is how you flash our cool patched version of the "badge magic" firmware onto your badge. this will make the old badge magic app work with your new-hardware-rev badge, which is the only way you can use the badge on iOS if you don't want to install the horrible vendor app on your iphone

to start, you will need the "wchisp" programming tool

if you run arch btw, it's "wchisp" or "wchisp-git" on AUR

otherwise, grab the binaries from github or whatever

you will also need a USB-C cable to connect the badge, and a pair of tweezers or something to short a small SMT capacitor

instructions

  1. open the case of your badge with a spudger, it's just plastic clips
  2. make sure the silkscreen says "260404" (new rev) and not "250901" (old rev) (our custom FW only works on new rev. if you have the old rev, just use the old badge magic app)
  3. connect USB to computer
  4. hold down KEY2 (button further from USB, marked on silkscreen)
  5. while holding KEY2, short C3 (opposite side of the board) with your tweezers
  6. badge should enter DFU mode, which displays a single dim pixel
  7. run "wchisp config reset" (will need udev rules for USB permissions, or run as root)
  8. run "wchisp flash badgemagic-ch582-B1144C-v6.bin"
  9. after code write finishes, press the reset button and disconnect
  10. done

help

if you're having a hard time or if anything here is wrong, email me!

cyberpolice@mailbox.org