Skip to content

Garbaz/stm32-experiments

Repository files navigation

Playing around with an STM32F103 "Blue Pill" board

✨ Embedded Rust ✨

Making the STM32F103 talk to various crap I have lying around.

Take a look inside examples.

Requirements

Install these programs with your package manager of choice:

  • arm-none-eabi-gdb (aka gdb-multiarch or gdb-arm-none-eabi)
  • openocd

And with rustup install the correct ARM support:

rustup target install thumbv7m-none-eabi

Build & Run

Connect the ST-LINK v2 (if you have a different programmer, edit openocd.cfg accordingly).

In one terminal run openocd (it should say Listening on port 3333 for gdb connections).

In another terminal run cargo run --release --example={...} for any of the programs in examples.

Inside gdb you can use rr to rebuild & load the current example if you changed anything.

Pictures

mpu6050

Releases

No releases published

Packages

No packages published