summaryrefslogtreecommitdiff
path: root/bsp/tools/openocd_upload.sh
blob: afa9dad9f4bfea42eb26494dafeaea491c1f912c (plain)
1
2
3
4
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