anykey-firmware/flash.sh

6 lines
143 B
Bash
Raw Permalink Normal View History

2021-07-10 23:56:43 +02:00
#!/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