Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,17 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"device": "nRF52840_xxAA",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "West Build"
},
{
"name": "Attach",
"device": "nRF52840_xxAA",
"name": "Launch and Attach to GDB Server",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
"servertype": "external",
"gdbTarget": "127.0.0.1:3333",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "Start West Debug Server",
"postDebugTask": "Stop West Debug Server"
},
]
}
40 changes: 40 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,40 @@
"problemMatcher": [
"$gcc"
]
},
{
"label": "Start West Debug Server",
"type": "shell",
"isBackground": true,
"command": "west debugserver",
"dependsOn": "West Build",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": [
{
"pattern": [{
"regexp": ".",
"file": 1,"line": 1,
"column": 1,"message": 1
}],
"background": {
"activeOnStart": true,
"beginsPattern": { "regexp": "." },
"endsPattern": { "regexp": "." }
},
}
]
},
{
"label": "Stop West Debug Server",
"command": "echo ${input:terminate west debug server}",
"type": "shell"
}
],
"inputs": [
Expand All @@ -91,6 +125,12 @@
"always",
"never"
]
},
{
"id": "terminate west debug server",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "Start West Debug Server"
}
]
}
64 changes: 47 additions & 17 deletions zephyr-linux.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,40 @@
"problemMatcher": [
"$gcc"
]
},
{
"label": "Start West Debug Server",
"type": "shell",
"isBackground": true,
"command": "west debugserver",
"dependsOn": "West Build",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": [
{
"pattern": [{
"regexp": ".",
"file": 1,"line": 1,
"column": 1,"message": 1
}],
"background": {
"activeOnStart": true,
"beginsPattern": { "regexp": "." },
"endsPattern": { "regexp": "." }
},
}
]
},
{
"label": "Stop West Debug Server",
"command": "echo ${input:terminate west debug server}",
"type": "shell"
}
],
"inputs": [
Expand All @@ -84,36 +118,32 @@
"always",
"never"
]
},
{
"id": "terminate west debug server",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "Start West Debug Server"
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"device": "nRF52840_xxAA",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "West Build"
},
{
"name": "Attach",
"device": "nRF52840_xxAA",
"name": "Launch and Attach to GDB Server",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
"servertype": "external",
"gdbTarget": "127.0.0.1:3333",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "Start West Debug Server",
"postDebugTask": "Stop West Debug Server"
},
]
]
},
"extensions": {
"recommendations": [
Expand Down
64 changes: 47 additions & 17 deletions zephyr-macos.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,40 @@
"problemMatcher": [
"$gcc"
]
},
{
"label": "Start West Debug Server",
"type": "shell",
"isBackground": true,
"command": "west debugserver",
"dependsOn": "West Build",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": [
{
"pattern": [{
"regexp": ".",
"file": 1,"line": 1,
"column": 1,"message": 1
}],
"background": {
"activeOnStart": true,
"beginsPattern": { "regexp": "." },
"endsPattern": { "regexp": "." }
},
}
]
},
{
"label": "Stop West Debug Server",
"command": "echo ${input:terminate west debug server}",
"type": "shell"
}
],
"inputs": [
Expand All @@ -84,36 +118,32 @@
"always",
"never"
]
},
{
"id": "terminate west debug server",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "Start West Debug Server"
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"device": "nRF52840_xxAA",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "West Build"
},
{
"name": "Attach",
"device": "nRF52840_xxAA",
"name": "Launch and Attach to GDB Server",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
"servertype": "external",
"gdbTarget": "127.0.0.1:3333",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "Start West Debug Server",
"postDebugTask": "Stop West Debug Server"
},
]
]
},
"extensions": {
"recommendations": [
Expand Down
65 changes: 48 additions & 17 deletions zephyr-windows.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,40 @@
"problemMatcher": [
"$gcc"
]
},
{
"label": "Start West Debug Server",
"type": "shell",
"isBackground": true,
"command": "west debugserver",
"dependsOn": "West Build",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": [
{
"pattern": [{
"regexp": ".",
"file": 1,"line": 1,
"column": 1,"message": 1
}],
"background": {
"activeOnStart": true,
"beginsPattern": { "regexp": "." },
"endsPattern": { "regexp": "." }
},
}
]
},
{
"label": "Stop West Debug Server",
"command": "echo ${input:terminate west debug server}",
"type": "shell"
}
],
"inputs": [
Expand All @@ -84,36 +118,33 @@
"always",
"never"
]
},
{
"id": "terminate west debug server",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "Start West Debug Server"
}

]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"device": "nRF52840_xxAA",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "West Build"
},
{
"name": "Attach",
"device": "nRF52840_xxAA",
"name": "Launch and Attach to GDB Server",
"cwd": "${workspaceFolder}",
"executable": "build/zephyr/zephyr.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
"servertype": "external",
"gdbTarget": "127.0.0.1:3333",
"gdbPath": "${userHome}/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"preLaunchTask": "Start West Debug Server",
"postDebugTask": "Stop West Debug Server"
},
]
]
},
"extensions": {
"recommendations": [
Expand Down