mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-14 05:07:35 +08:00
fcf0d3536f
- script return non-zero exit if there's a failure - upload script look for both gdb-multiarch and arm-none-eabi-gdb
12 lines
286 B
Bash
Executable File
12 lines
286 B
Bash
Executable File
#! /bin/sh
|
|
|
|
killall JLinkGDBServerCLExe
|
|
|
|
@JLinkGDBServerCLExe_PATH@ -silent -device @DEBUG_DEVICE@ -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 $?
|