No description
| .cargo | ||
| bin | ||
| src | ||
| .doomrc | ||
| .gdbinit | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| memory.x | ||
| 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