Embedded firmware written in Rust using the svd2rust STM32 HAL and RTIC framework. Firmware for the Front Vehicle Controller of Arrow 4.
Install dependencies
# Install tools
cargo install probe-rs flip-link
# Add target platform
rustup target add thumbv7em-none-eabihf
Once you have connected your programmer to the target, you can run cargo run
like any other rust project.
Surprisingly, just because we're on an embedded platform, we still have the ability to run unit tests on the target, thanks to defmt-test
.
Just use cargo test
to run each unit test module (each is flashed and run separately).
The logging level use by defmt can be set with the environment variable DEFMT_LOG
. Possible values are trace
, debug
, info
, warn
, error
, and off
. By default the log level is set to info
.