#!/bin/bash EXAMPLE=$1 mkdir -p out cargo build --example $EXAMPLE --release && arm-none-eabi-objcopy -O binary target/thumbv7em-none-eabi/release/examples/$EXAMPLE out/$EXAMPLE.bin