LPC11UXX Blinky in Rust
Based on cortex-m-quickstart
Dependencies
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
-
rust-std
components (pre-compiledcore
crate) for the ARM Cortex-M targets. Run:
Install latest rust
rustup update
rustup toolchain list
Choose latest stable version
rustup default stable-x86_64-apple-darwin
Or use the nightly
rustup toolchain install nightly
rustup default nightly
Install the cross compile targets
$ rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf
Using this template
NOTE: This is the very short version that only covers building programs. For the long version, which additionally covers flashing, running and debugging programs, check the embedded Rust book.
- Build the application.
$ cargo build
License
This template is licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.