579 B
579 B
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