Skip to content

Instantly share code, notes, and snippets.

@DTibbs
Forked from davidtibbetts/tasks.json
Created May 25, 2018 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DTibbs/f6c1f4b5ed0955ee4f7cc9ab019d9588 to your computer and use it in GitHub Desktop.
Save DTibbs/f6c1f4b5ed0955ee4f7cc9ab019d9588 to your computer and use it in GitHub Desktop.
OpenOCD launch for VSCode
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"options": {
"env": {
"OPENOCD_SCRIPTS": "${workspaceRoot}\\..\\OpenOCD-20170609\\share\\openocd\\scripts"
}
},
"tasks": [
{
"type": "shell",
"label": "Start-OpenOCD",
"command": "openocd",
"args": [
"-f", "interface\\stlink-v2-1.cfg",
"-f", "target\\stm32f1x.cfg"
],
"problemMatcher": {
"pattern": {
"regexp": "^(Info |Warn |Error):(.*)$",
"severity": 1,
"message": 2
},
"background": {
"activeOnStart": true,
"beginsPattern": "^Open On-Chip Debugger.*",
"endsPattern": ".*watchpoints.*"
}
},
"presentation": {
"reveal":"always"
},
"isBackground": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment