✨ Embedded Rust ✨
Making the STM32F103 talk to various crap I have lying around.
Take a look inside examples.
Install these programs with your package manager of choice:
arm-none-eabi-gdb
(akagdb-multiarch
orgdb-arm-none-eabi
)openocd
And with rustup
install the correct ARM support:
rustup target install thumbv7m-none-eabi
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.