upload script

This commit is contained in:
2020-10-24 19:43:22 +02:00
parent 32f3ef93e9
commit 446db296c1
2 changed files with 11 additions and 2 deletions

View File

@ -49,10 +49,11 @@ To upload a built binary enter
reset init
reset halt
flash write_image erase /home/wn/Workspaces/stm32_test2/cube/build/cube.elf
flash write_image erase /home/wn/Workspaces/$PROJECT/cube/build/cube.elf
reset run
Make sure to use the absolute path.
Make sure to use the absolute path. Alternatively, use the script ``upload.sh`` from the tools directory.

8
tools/upload.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
cat << EOF | nc localhost 4444
reset halt
flash write_image erase /home/wn/Workspaces/mbusgateway3variant/cube/build/cube.elf
reset run
exit
EOF