FrtosRs is a project that aims to explore the usage of the FreeRTOS-rust crate with an embedded application. The project uses the STM32H743VIT6 microcontroller on the MatekH743Wing development board. The project focuses on implementing a FreeRTOS queue, USB communication, and the Rust HAL crate.
- FreeRTOS-rust crate
- Rust HAL crate
- STM32H743VIT6 mcu
- MatekH743Wing board
- Implements a FreeRTOS queue for task synchronization
- Sends task status information (such as maximum free stack space) over USB communication
- Blinks green LED on the MatekH743Wing board
- Uses the Rust HAL crate for hardware abstraction
To get started with this project, you will need to have the following:
- Rust and arm-none-eabi-gcc installed on your machine
- An STM32H743VIT6 microcontroller
- A MatekH743Wing development board
To build the project, follow these steps:
- Clone the repository using
git clone
. - Change into the project directory using
cd frtosrs
. - Check that arm-none-eabi-gcc installed
arm-none-eabi-gcc -v
- Build the project using
cargo build
. - Flash the resulting binary (found at
target/thumbv7em-none-eabihf/release/frtosrs
) to your STM32H743VIT6 microcontroller. Simpliest way to do this is withcargo embed
To run the project, simply connect the MatekH743Wing board to your computer and open a serial terminal (such as CuteCom, PuTTY or TeraTerm). The project will start automatically upon flashing the binary to your mcu.