A template for building applications for ARM Cortex-M0 stm32l010f4 microcontrollers
Based off of cortex-m-quickstart and stm32l0xx-hal
To build embedded programs using this template you'll need:
-
The arm-none-eabi compiler toolchain
- On Ubuntu or Debian: apt-get install gcc-arm-none-eabi binutils-arm-none-eabi
- On MacOS, grab a pre-built toolchain from the homebrew-arm repo
-
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
- cargo-flash to run examples on target hardware.
cargo install cargo-flash
- Instantiate the template.
$ cargo generate --git https://github.com/mattdeeds/rust-stm32l010f4px-template
Project Name: app
Creating project called `app`...
Done! New project created /tmp/app
$ cd app
- Build
cargo build --release
- Build and flash
cargo flash --release --chip STM32L010F4Px
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.