This repo provides a starting point for new STM32-HAL projects. It's based on the Knurling app template.
Now, it's modified to be adaptable to STM32G031G8Ux. Based on the stm32-hal-quickstart1 project.
- Install Rust.
- Install the compilation target for your MCU. For example:
rustup target add thumbv6m-none-eabi. - Install flash and debug tools:
cargo install flip-link,cargo install probe-run. - Clone this repo:
git clone git@github.com:IvanLi-CN/stm32-hal-stm32g031g8ux-quickstart.git - Connect your device. Run
cargo run --releaseto compile and flash.