diff options
Diffstat (limited to 'bsp/tools')
-rwxr-xr-x | bsp/tools/openocd_upload.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bsp/tools/openocd_upload.sh b/bsp/tools/openocd_upload.sh new file mode 100755 index 0000000..afa9dad --- /dev/null +++ b/bsp/tools/openocd_upload.sh @@ -0,0 +1,5 @@ +#! /bin/bash -x + +openocd -f ${2} \ + -c "flash protect 0 64 last off; program ${1}; resume 0x20400000; exit" \ + 2>&1 | tee openocd_upload.log |