Skip to content

Quickly start your Rust RTIC project with an STM32F103C8 micro-controller.

Notifications You must be signed in to change notification settings

jonas-hagen/rtic_stm32f103c8_rtt_quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

{{project-name}}

About this template

This is a template for quickly starting an RTIC project with an STM32F103C8 microcontroller. Particularly, this template uses:

  • cargo-embed for flashing
  • RTT for debug printing
  • High optimisations in debug profile, to keep binaries small for all builds

Using this template

Use the cargo generate sub command. Installation instructions.

$ cargo generate --git https://github.com/jonas-hagen/rtic_stm32f103c8_rtt_quickstart
 Project Name: app
 Creating project called `app`...
 Done! New project created /tmp/app

$ cd app

Dependencies

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

  • Rust nightly

  • rust-std components (pre-compiled core crate) for the ARM Cortex-M targets. Run:

$ rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf
  • cargo-embed from the probe.rs project.

Build and flash

Build and flash the program and start the RTT terminal:

$ cargo embed

This should show the "Hello World!" output from the MCU.

License

This template is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Quickly start your Rust RTIC project with an STM32F103C8 micro-controller.

Topics

Resources

Stars

Watchers

Forks