mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 16:57:41 -04:00
Initial vscode debug configuration (#485)
This commit is contained in:
parent
1c99d9f200
commit
68a500bca3
3 changed files with 142 additions and 0 deletions
36
FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/.vscode/c_cpp_properties.json
vendored
Normal file
36
FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/.vscode/c_cpp_properties.json
vendored
Normal file
|
@ -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
|
||||||
|
}
|
25
FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/.vscode/launch.json
vendored
Normal file
25
FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/.vscode/launch.json
vendored
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
81
FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/.vscode/tasks.json
vendored
Normal file
81
FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/.vscode/tasks.json
vendored
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue