Environment setup

rustup target add thumbv7em-none-eabihf
cargo install cargo-binutils
rustup component add llvm-tools-preview

Install arm compilers

Windows:

  1. Install ARM toolchain
  2. Install xPack OpenOCD
  3. Install ST-Link drivers

Useful commands

$ # In ./app or ./bootloader, start openOCD
$ openocd
$ # then debug
$ cargo run

$ # Show sizes
$ cargo size --bin app -- -A

$ # Make bin file
$ cargo objcopy -- -O binary out.bin