mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
SQUASHME: kill openocd by PID
This commit is contained in:
parent
8945768c91
commit
b505df23a5
5
boards/iot-lab_M3/dist/debug.sh
vendored
5
boards/iot-lab_M3/dist/debug.sh
vendored
@ -17,9 +17,12 @@ openocd -f "${BIN_FOLDER}/${BOARD}_jtag.cfg" \
|
||||
-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}
|
||||
|
||||
killall openocd
|
||||
kill ${OCD_PID}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user