Initial vscode debug configuration (#485)

pull/486/head
Cobus van Eeden 4 years ago committed by GitHub
parent 1c99d9f200
commit 68a500bca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,36 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceRoot}",
"${workspaceRoot}/../../../FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC",
"${workspaceRoot}/../../../FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/CMSIS",
"${workspaceRoot}/../../../FreeRTOS/Source/include",
"${workspaceRoot}/../../../FreeRTOS/Source/portable/GCC/ARM_CM3"
],
"defines": ["DEBUG=1", "mainCREATE_SIMPLE_BLINKY_DEMO_ONLY=1"],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceRoot}",
"${workspaceRoot}/../../../FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC",
"${workspaceRoot}/../../../FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/CMSIS",
"${workspaceRoot}/../../../FreeRTOS/Source/include",
"${workspaceRoot}/../../../FreeRTOS/Source/portable/GCC/ARM_CM3"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compilerPath": "/usr/local/bin/arm-none-eabi-gcc",
"cStandard": "c99",
"cppStandard":"c++11"
}
],
"version": 4
}

@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "gdb",
"request": "attach",
"executable" : "${workspaceRoot}/build/RTOSDemo.axf",
"target": ":1234",
"remote": true,
"cwd": "${workspaceRoot}",
"osx": {
"preLaunchTask": "qemu",
"postDebugTask": "killallqemu"
}
}
]
}

@ -0,0 +1,81 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"args": ["DEBUG=1"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "/"],
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
]
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "killallqemu",
"type":"shell",
"isBackground":true,
"command": "killall qemu-system-arm",
"presentation": {
"echo": false,
"reveal": "never",
"focus": false,
"showReuseMessage": false,
"clear": true,
},
},
{
"label": "qemu",
"type":"shell",
"isBackground":true,
"runOptions":
{
"instanceLimit": 1
},
"command": "qemu-system-arm -s -S -machine mps2-an385 -monitor null -semihosting --semihosting-config enable=on,target=native -kernel ./build/RTOSDemo.axf -serial stdio -nographic -d cpu_reset",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true,
},
"problemMatcher":
{
"owner": "external",
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": "."
}
}
}
]
}
Loading…
Cancel
Save