Skip to content

David-OConnor/stm32-hal-quickstart1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32-HAL quickstart

This repo provides a starting point for new STM32-HAL projects. It's based on the Knurling app template.

Quickstart

  • Install Rust.
  • Install the compilation target for your MCU. Eg run rustup target add thumbv7em-none-eabihf. You'll need to change the last part if using a Cortex-M0, Cortex-M33, (Eg Stm32G0 or L5 respectively) or if you don't want to use hardware floats.
  • Install flash and debug tools: cargo install flip-link, cargo install probe-run.
  • Clone this repo: git clone https://github.com/David-OConnor/stm32-hal-quickstart
  • Change the following lines to match your MCU. Post an issue if you need help with this:
    • Cargo.toml: hal = { package = "stm32-hal2", version = "^1.1.0", features = ["l4x3", "l4rt"] }
    • memory.x: FLASH and RAM lines
    • .cargo/config.toml: runner and target lines.
  • Connect your device. Run cargo run --release to compile and flash.

About

Quickstart for STM32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published