diff --git a/flash.sh b/flash.sh --- a/flash.sh +++ b/flash.sh @@ -1,8 +1,10 @@ #!/bin/bash -cd build -st-flash write main.bin 0x8000000 -cd .. +#cd build +#st-flash write main.bin 0x8000000 +#cd .. # USB DFU: -# sudo dfu-util -a 0 -d 0483:df11 -s 0x08000000:leave -D build/main.bin +dfu-util -a 0 -d 0483:df11 -s 0x08000000:leave -D build/main.bin +sleep 1 +dfu-util -a 1 -s 0x1FFFF800:8 -D optbytes.dat