A template for building applications for Air001 microcontrollers
To build embedded programs using this template you'll need:
-
Rust 1.31, 1.30-beta, nightly-2018-09-13 or a newer toolchain. e.g.
rustup default beta
-
The
cargo generate
subcommand. Installation instructions. -
rust-std
components (pre-compiledcore
crate) for the ARM Cortex-M targets. Run:
$ rustup target add thumbv6m-none-eabi
- Instantiate the template.
$ cargo generate --git https://github.com/air001-rs/air001-quickstart
Project Name: app
Creating project called `app`...
Done! New project created /tmp/app
$ cd app
- Build the template application or one of the examples.
$ cargo build --release
$ cargo build --release --example blinky
Use PyOCD (> 0.36) and DAPLink to flash the program.
$ pyocd load --target air001 -f 100khz --format elf target/thumbv6m-none-eabi/release/examples/blinky