bootloader/upload.sh

8 lines
148 B
Bash
Executable File

#!/bin/bash
st-flash --reset write .build/bootloader.bin 0x8000000
if [ $? -ne 0 ]
then
st-flash --reset write .build/bootloader.bin 0x8000000
fi