This repository is my playground for learning embedded rust. It implements a HAL for the stm32g474 chip.
rustup target add thumbv7em-none-eabihf
cargo build
The elf file is then located intarget/thumbv7em-none-eabihf/debug/app
- Install the cortex-debug extension
- Install
sudo apt install gdb-multiarch
- Open vscode user settings and add the following:
{
"cortex-debug.gdbPath": "/usr/bin/gdb-multiarch"
}