1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/samr21-xpro/dist/debug.sh
2015-01-27 20:49:58 +01:00

20 lines
341 B
Bash
Executable File

#!/bin/bash
openocd -f "board/atmel_samr21_xplained_pro.cfg" \
-c "tcl_port 6333" \
-c "telnet_port 4444" \
-c "init" \
-c "targets" \
-c "reset halt" \
-l /dev/null &
# save pid to terminate afterwards
OCD_PID=$?
# needed for openocd to set up
sleep 5
arm-none-eabi-gdb -tui --command=${1} ${2}
kill ${OCD_PID}