/ch32-rs

Embedded Rust device crates for WCH's RISC-V and Cortex-M microcontrollers

Primary LanguagePython

ch32-rs - WCH's CH32 Peripheral Access Crates

crates.io crates.io crates.io crates.io crates.io crates.io

crates.io crates.io crates.io crates.io crates.io

Embedded Rust device crates for WCH's RISC-V and Cortex-M microcontrollers.

Roadmap

Development

# Do not use rust version of svdtools
pip install svdtools

# install xmlint

cargo install svd2rust

./scripts/generate.sh && ./scripts/update.sh

MCU list

NOTE: Will never support 8-bit MCUs.

Subdivision

  • D6: Low-and-medium-density general
  • D8: High-density general
  • D8C: Connectivity or interconnectivity
  • D8W: Wireless

RISC-V

Nick name: "赤菟"(Chitu). IP Core brand: 青稞(Qingke). V2, V3, V4A, V4B, V4C, V4F.

  • CH32V103: Qingke-V3A
  • CH32V203: Qingke-V4B
  • CH32V208: Qingke-V4C
  • CH32V303/305/307: Qingke-V4F
  • CH32L103 RISC-V4C, Low power
  • CH32X035/033: RISC-V4C
  • CH56x: RISC-V3A
  • CH571, CH573: RISC-V3A BLE 4.2
  • CH58x: RISC-V4A, BLE
  • CH59x: RISC-V4C, BLE 5.4
  • CH643: RISC-V4C RGB driver MCU

Cortex-M

CH32F20x_D6: CH32F203K8, CH32F203C6 and CH32F203C8.
CH32F20x_D8: CH32F203CB, CH32F203RC and CH32F203VC.
CH32F20x_D8C: CH32F205RB and CH32F207VC.
CH32F20x_D8W: CH32F208RB and CH32F208WB.

Toolchain

Ref