/stm32f103c8t6-rust-starter

Basic Rust starter project for bluepill/stm32f103c8t6 boards

Primary LanguageRust

Barebones Rust starter template for bluepill stm32f103c8t6 boards

Requires arm toolchain and stlink.

Then connect your st-link to computer and run:

sh build.sh

This will attempt to compile and flash your firmware.

Then, you can try debugging with GDB and OpenOCD

First, start openocd with:

openocd -f openocd.cfg

Then start gdb with:

arm-none-eabi-gdb -q -x openocd.gdb target/thumbv7m-none-eabi/release/stm32f103c8t6-rust-starter

In gdb type continue to start the program.

If your debugger supports SWO, you can read it with:

itmdump --follow -f itm.fifo