upload script
This commit is contained in:
@ -49,10 +49,11 @@ To upload a built binary enter
|
|||||||
|
|
||||||
reset init
|
reset init
|
||||||
reset halt
|
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
|
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
8
tools/upload.sh
Executable 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
|
Reference in New Issue
Block a user