Just a blinky written in Rust for STM32l152C Discovery
The following need to be installed
Add Cortex-M3 target
rustup target add thumbv7m-none-eabi
cargo build
With your stm32l152c-discovery board connected to the PC
openocd -s $OPENOCD_PATH/share/scripts -f interface/stlink.cfg -f target/stm32l1.cfg
Or with dev dependencies installed run
cargo run-script openocd
Note, the command above assumes openocd is in your PATH and installed under C:\OpenOCD
. Check Cargo.toml to update openocd script.
cargo run
On gdb terminal run
(gdb) target extended-remote :3333
Note, the command above assumes default port 3333 is used.
(gdb) load
Checkout these links