Skip to content

Commit

Permalink
Add simple flashing script using stm32flash
Browse files Browse the repository at this point in the history
Signed-off-by: Szczepan Zalega <[email protected]>
  • Loading branch information
szszszsz committed Feb 9, 2018
1 parent 8912d3c commit 796ff4d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/flash-stm32flash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FIRMWAREBIN=$1

if [ "$1xxx" == "xxx" ]; then
echo "Firmware update script using stm32flash"
echo "Please provide .hex file with firmware binary"
exit 1
fi

echo "Running procedure with $FIRMWAREBIN"

stm32flash -k /dev/ttyUSB0
stm32flash -u /dev/ttyUSB0
stm32flash -v -w $FIRMWAREBIN /dev/ttyUSB0
stm32flash -j /dev/ttyUSB0

0 comments on commit 796ff4d

Please sign in to comment.