Skip to content

Instantly share code, notes, and snippets.

@davidtibbetts
Last active July 28, 2021 04:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save davidtibbetts/9ae8131d9f7e87c62ac064302405c453 to your computer and use it in GitHub Desktop.
Save davidtibbetts/9ae8131d9f7e87c62ac064302405c453 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