Added script for flash config upload
This commit is contained in:
parent
481cf6f9f4
commit
16619397b1
18
utils/upload_config_hex.sh
Executable file
18
utils/upload_config_hex.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
HEXFILE="$1"
|
||||||
|
|
||||||
|
if [ ! -f "$HEXFILE" ]; then
|
||||||
|
echo "$HEXFILE cannot be accessed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
JLinkExe -device STM32F030C8 -speed 1000 -if SWD <<EOF
|
||||||
|
connect
|
||||||
|
loadfile $HEXFILE
|
||||||
|
r
|
||||||
|
g
|
||||||
|
exit
|
||||||
|
EOF
|
Loading…
Reference in a new issue