Browse Source

vscode: add stlink debug config (#19269)

Co-authored-by: Jacob Crabill <jacob.crabill@gmail.com>
v1.13.0-BW
Daniel Agar 3 years ago committed by GitHub
parent
commit
52221b0bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      platforms/nuttx/Debug/launch.json.in

18
platforms/nuttx/Debug/launch.json.in

@ -21,6 +21,24 @@
"set print pretty", "set print pretty",
] ]
}, },
{
"name": "stlink (@PX4_BOARD@)",
"device": "@DEBUG_DEVICE@",
"svdFile": "@DEBUG_SVD_FILE_PATH@",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",
"servertype": "stutil",
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchCommands": [
"source ${workspaceFolder}/platforms/nuttx/Debug/PX4",
"source ${workspaceFolder}/platforms/nuttx/Debug/NuttX",
"source ${workspaceFolder}/platforms/nuttx/Debug/ARMv7M",
"set mem inaccessible-by-default off",
"set print pretty",
]
},
{ {
"name": "blackmagic (@PX4_BOARD@)", "name": "blackmagic (@PX4_BOARD@)",
"device": "@DEBUG_DEVICE@", "device": "@DEBUG_DEVICE@",

Loading…
Cancel
Save