# ch32v203-bms A simple battery management controller software. ## Building ``` sh cargo build --release ``` ## Flash ``` sh 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 ```