Skip to content

unmanbearpig/blinky-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Blink built-in LED on STM32F103 "bluepill" board in Rust with no dependencies

Topics

Resources

License

Stars

Watchers

Forks

Languages