Skip to content

mattdeeds/rust-stm32l010f4px-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-stm32l010f4px-template

A template for building applications for ARM Cortex-M0 stm32l010f4 microcontrollers

Based off of cortex-m-quickstart and stm32l0xx-hal

Dependencies

To build embedded programs using this template you'll need:

  • rustup

  • 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-compiled core crate) for the ARM Cortex-M targets. Run:

rustup target add thumbv6m-none-eabi
cargo install cargo-flash

Using this template

  1. 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
  1. Build
cargo build --release
  1. Build and flash
cargo flash --release --chip STM32L010F4Px

License

This template is licensed under either of

at your option.

About

Template to develop bare metal applications for stm32l010f4px microcontrollers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages