mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 00:44:07 +08:00
15 lines
407 B
Bash
Executable File
15 lines
407 B
Bash
Executable File
#! /bin/sh
|
|
|
|
set -o xtrace
|
|
|
|
@JLinkGDBServerExe_PATH@ -device @DEBUG_DEVICE@ -select usb -endian little -if SWD -speed auto -ir -LocalhostOnly 1 -strict -vd -singlerun &
|
|
|
|
cd @PX4_BINARY_DIR@ && @CMAKE_GDB@ -silent -nh \
|
|
-iex "set auto-load safe-path @PX4_BINARY_DIR@" \
|
|
-ex "target remote localhost:2331" \
|
|
-ex "monitor reset 0" \
|
|
-ex "load" \
|
|
-ex "monitor reset 0" \
|
|
-ex "continue" \
|
|
@PX4_CONFIG@.elf
|