Skip to content

mlefebvre1/hello-world-embedded-rust-stm32f4-disc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello-World Embedded Rust

For the STM32F4DISCOVERY board, provides LEDs blink patterns. The USER push-button allows switching pattern.

How to install

See : https://docs.rust-embedded.org/book/intro/install/linux.html

Add arch

$ rustup target add thumbv7em-none-eabi

How to use

Build

$ cargo build --target thumbv7m-none-eabi

Start OpenOCD and Debug In one terminal session:

$ openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg

In a second terminal session:

$ gdb-multiarch -q target/thumbv7m-none-eabi/debug/hello-world-embedded

Upload new code in GDB

load

Or simply

$ cargo run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published