Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.35 KB

README.md

File metadata and controls

19 lines (14 loc) · 1.35 KB

Blinky-from-scratch

Blink built-in LED on STM32F103 "bluepill" board in Rust with no dependencies. No "cortex-m-rt" or other libraries.

My goal was to figure out how to build a program for a microcontroller in Rust while understanding every part of it (therefore no dependencies).

I've written some comments that try to explain everything that we're doing.

If you're learning how to build programs for microcontrollers then take a look at these resources I used while building this:

  • STM32F1 reference manual Explains how to program STM32F1. That's where you would look up all the memory addresses and values and stuff.
  • Rust Embedonomicon Very nice walk-through on how to build programs for microcontrollers in Rust from scratch.
  • libopencm3 A library for various microcontrollers. Relatively easy to read C code.
  • libopencm3-examples
  • cortex-m-rt Rust Crate "Startup code and minimal runtime for Cortex-M microcontrollers". Seems too high-level for my taste, but useful nonetheless.