#! /bin/sh

killall JLinkGDBServerCLExe

@JLinkGDBServerCLExe_PATH@ -silent -device @DEBUG_DEVICE@ -rtos "@JLINK_RTOS_PATH@" -select usb -if SWD -speed auto -LocalhostOnly 1 -strict -vd -singlerun -timeout 3000 -powertarget 0 -nogui &
sleep 2

pgrep -i JLinkGDBServer

# exit with status of last command
exit $?
