No description
Find a file
2025-08-10 01:09:40 +02:00
.cargo Initial commit 2025-06-20 10:23:11 +02:00
bin minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00
src start working on i2c slave implementation 2025-08-10 01:09:40 +02:00
.doomrc minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00
.gdbinit minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02:00
.gitignore Initial commit 2025-06-20 10:23:11 +02:00
build.rs Initial commit 2025-06-20 10:23:11 +02:00
Cargo.lock add ch32 peripheral access crate to dependencies 2025-07-31 21:19:41 +02:00
Cargo.toml add ch32 peripheral access crate to dependencies 2025-07-31 21:19:41 +02:00
memory.x Initial commit 2025-06-20 10:23:11 +02:00
openocd.cfg minimal working project with instruct step debugging infrastructure in place 2025-07-13 19:57:20 +02: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