Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.07 KB

File metadata and controls

30 lines (19 loc) · 1.07 KB

Vehicle Controller

Getting Started

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.

Unit Tests

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).

Log Level

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.

References