1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/boards/stm32f4discovery/dist/debug.sh
2015-01-27 20:32:57 +01:00

20 lines
325 B
Bash
Executable File

#!/bin/sh
openocd -f "board/stm32f4discovery.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 2
arm-none-eabi-gdb -tui -command=$1 $2
kill ${OCD_PID}