No description
  • Rust 86.4%
  • Linker Script 7.1%
  • Shell 3.6%
  • Dockerfile 2.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-09 23:48:30 +02:00
.cargo initial reoder of folders and library crate creation 2025-12-29 23:22:18 +01:00
bin minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00
firmware starting with library and measurment implementation 2026-01-01 21:20:55 +01:00
lib-bms-protocol expand hemming code to full 32bit with 6 hemming bits 2026-09-09 23:28:02 +02:00
.doomrc minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00
.gdbinit use debug binary for loading symbols 2025-12-29 14:32:01 +01:00
.gitignore Initial commit 2025-06-20 10:23:11 +02:00
Cargo.lock add chrono dependency 2026-04-12 22:15:08 +02:00
Cargo.toml initial reoder of folders and library crate creation 2025-12-29 23:22:18 +01:00
openocd.cfg fix openocd cfg 2025-12-28 13:43:32 +01:00
README.md minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00
rust-toolchain.toml Initial commit 2025-06-20 10:23:11 +02:00
wch-tools.Containerfile minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00

ch32v203-bms

A simple battery management controller software.

Building

cargo build --release

Flash

wchip wchisp flash target/riscv32imc-unknown-none-elf/release/bms

Debugging

For debugging purposes a container file is provided together with wrapper scripts to start the containerized openocd and riscv-gdb transparently. The wrapper scripts assume that podman is setup.

Starting Debug server

./bin/openocd

Connecting with gdb for interactive debugging

./bin/gdb -f target/riscv32imc-unknown-none-elf/release/bms