rt-thread/bsp/gd32vf103v-eval/libraries/n22/tools/openocd_upload.sh

6 lines
177 B
Bash
Raw Normal View History

2019-07-24 17:03:26 +08:00
#! /bin/bash -x
work/build/openocd/prefix/bin/openocd -f ${2} \
-c "flash protect 0 0 last off; program ${1} verify; resume 0x20000000; exit" \
2>&1 | tee openocd_upload.log