Skip to content

A simple blinky program using Rust on NUCLEO-F446RE board

License

BSL-1.0, BSL-1.0 licenses found

Licenses found

BSL-1.0
LICENSE
BSL-1.0
LICENSE_1_0.txt
Notifications You must be signed in to change notification settings

imahjoub/rust_stm32f446re_blinky

Repository files navigation

rust_stm32f446re_blinky

Build Status Rustfmt Status Issues Boost Software License 1.0

  • A mini application to demonstrate embedded development using Rust. Created using a NUCLEO-F446RE development board. Blinks an LED on pin PA5.

  • The application uses Visual Studio as IDE to build source files and flash the board.

  • The repository provides a compressed cargo package located in rust_stm32f446re_blinky\toolchain\cargo\bin.7z. Unpack the cargo package before building the application.

Using rust_stm32f446re_blinky with visual Studio (Windows)

Required tools

  • Visual Studio

cross compilation

  • After unpacking the zip folder (bin.7z), open a CMD window and run the following commands
- rustup default stable
- rustup target add thumbv7em-none-eabihf
- cargo install cargo-embed cargo-binutils

Build the rust_stm32f446re_blinky application

  • Open the solution rust_stm32f446re_blinky.sln in the ./rust_stm32f446re_blinky directory.
  • Select the stm32f446re_blinky_build configuration.
  • Then rebuild the entire solution.

Flash NUCLEO-F446RE with rust_stm32f446re_blinky

  • connect the NUCLEO-F446RE board to your pc
  • Select the stm32f446re_blinky_flash configuration.
  • Then rebuild the entire solution.

Using rust_stm32f446re_blinky in Linux

Cross-compilation installation

- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- rustup target add thumbv7em-none-eabihf
- cargo install cargo-embed cargo-binutils

Build application

- cargo build

flash target (NUCLEO-F446RE)

- cargo embed

Continuous integration and quality

Testing and continuous integration runs on GitHub Actions.

An additional quality check rustfmt is performed on a pull request and merge to master.

Useful Rust references

About

A simple blinky program using Rust on NUCLEO-F446RE board

Topics

Resources

License

BSL-1.0, BSL-1.0 licenses found

Licenses found

BSL-1.0
LICENSE
BSL-1.0
LICENSE_1_0.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages