#!/usr/bin/env bash
binary="$1"
arm-none-eabi-objcopy -O binary "$binary" firmware.bin
sudo dfu-util -a 0 -s 0x08000000:leave -D firmware.bin