No description
- Rust 86.4%
- Linker Script 7.1%
- Shell 3.6%
- Dockerfile 2.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| bin | ||
| firmware | ||
| lib-bms-protocol | ||
| .doomrc | ||
| .gdbinit | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| openocd.cfg | ||
| README.md | ||
| rust-toolchain.toml | ||
| wch-tools.Containerfile | ||
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