rustup target add thumbv7em-none-eabihf
cargo install cargo-binutils
rustup component add llvm-tools-preview
Install arm compilers
Windows:
- Install ARM toolchain
- Install xPack OpenOCD
- Install ST-Link drivers
$ # 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