Skip to content

EnmanuelParache/stm32l152c-blinky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stm32l152c-blinky

Just a blinky written in Rust for STM32l152C Discovery

Requirements

The following need to be installed

Installation

Add Cortex-M3 target

rustup target add thumbv7m-none-eabi

Build

cargo build

Start OpenOCD

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.

Connecting to the debugger

cargo run

Then connect to the target

On gdb terminal run

(gdb) target extended-remote :3333

Note, the command above assumes default port 3333 is used.

Load the program

(gdb) load

Reference

Checkout these links

About

Just a blinky in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published