Skip to content

Latest commit

 

History

History
94 lines (69 loc) · 3.16 KB

File metadata and controls

94 lines (69 loc) · 3.16 KB

CH582

  • Chip is read protected for code sections
  • Bootloader is active.
  • BLE update seems deactivated
[INFO] Chip: CH582[0x8216] (Code Flash: 448KiB, Data EEPROM: 32KiB)
[INFO] Chip UID: C1-03-CC-26-3B-38-C8-62
[INFO] BTVER(bootloader ver): 02.40
[INFO] Current config registers: ffffffff23000000450fff4f
RESERVED: 0xFFFFFFFF
WPROTECT: 0x00000023
  [0:0]   NO_KEY_SERIAL_DOWNLOAD 0x1 (0b1)
    `- Enable
  [1:1]   DOWNLOAD_CFG 0x1 (0b1)
    `- PB22(Default set)
USER_CFG: 0x4FFF0F45
  [2:0]   RESERVED 0x5 (0b101)
    `- Default
  [3:3]   CFG_RESET_EN 0x0 (0b0)
    `- Disable
  [4:4]   CFG_DEBUG_EN 0x0 (0b0)
    `- Disable
  [5:5]   RESERVED 0x0 (0b0)
  [6:6]   CFG_BOOT_EN 0x1 (0b1)
    `- Enable
  [7:7]   CFG_ROM_READ 0x0 (0b0)
    `- Disable the programmer to read out, and keep the program secret
  [27:8]  RESERVED 0xFFF0F (0b11111111111100001111)
    `- Default
  [31:28] VALID_SIG 0x4 (0b100)
    `- Valid

Hardware Details

Back

Its mirrored front if you want to play with transparency:

Front

Pinouts reverse engineering

TBD

pinout

LED Display

LED Display

Chip configuration

TBD

Bootloader

To enter bootloader, you have to press the bottom button when plugging USB.

The bootloader will remain active for few seconds, waiting for upload.

Important: Because the badge reassigns the bootloader pin as GPIO after boot, it is impossible to switch to bootloader as long as the battery is connected to the board (the board is always powered and does not reset). To be able to access the bootloader you must then desolder the battery. Alternatively, shorting the capacitor C3 while USB is connected can trigger a reset without desoldering or disconnecting the battery. It achieves this as C3 is connected to the badge's power rail and briefly shorting it causes a voltage drop sufficient to reset the chip, acting as a dirty power cycle. If KEY2 is held at the moment of reset (pulling the BOOT pin LOW), the chip samples the BOOT pin as LOW and enters ISP mode. This is less reliable than a clean power cycle from battery removal but easier to implement as it does not require soldering.

Note: This method requires shorting C3 specifically using metal tweezers or a wire on a live PCB. Accidentally shorting adjacent components can cause permanent damage to the board. Not recommended for beginners.

Development Hardware

Development software