This is a staple/skeleton project for embedded Rust development on the STM32 Nucleo-U545RE-Q development board. It is pre-configured to use the asynchronous Embassy framework and defmt for logging.
Before using this project, ensure your computer has the necessary tools installed:
- Rust Toolchain: Install Rust via rustup.
- Architecture Target: The STM32U545 requires the ARMv8-M target. Install it by running:
rustup target add thumbv8m.main-none-eabihf - Flashing Tool: Install
probe-rsto flash and debug the firmware:cargo install probe-rs-tools
To use this skeleton for a new lab or project, follow these steps:
- Duplicate this folder and rename it to your new project's name (e.g.,
lab05). - Open
Cargo.tomlin the new folder and change thenamefield to match your project name. - Open
src/main.rsand start writing your code!
- Connect the STM32 Nucleo-U545RE-Q board to your computer. Important: Make sure you use the USB-C STLK port on the board, not the USB USER port.
- Run the following command to compile the code, flash it to the board, and open the log console:
cargo run