mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
18 lines
267 B
Bash
18 lines
267 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ -L "$0" ]; then
|
||
|
FILE=$(readlink -e "$0")
|
||
|
else
|
||
|
FILE="$0"
|
||
|
fi
|
||
|
|
||
|
BIN_FOLDER=$(dirname "${FILE}")
|
||
|
|
||
|
echo "##"
|
||
|
echo "## Starting debug server"
|
||
|
echo "##"
|
||
|
openocd -f "${BIN_FOLDER}/openocd.cfg" \
|
||
|
-c "init" \
|
||
|
-c "targets" \
|
||
|
-c "reset halt" \
|