Skip to content

Commit 4c37473

Browse files
committed
Updated settings with a target cpu for debugging
1 parent 1d62f44 commit 4c37473

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.vscode/launch.json.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "Upload Core #0",
99
"cwd": "${workspaceFolder}",
1010
"executable": "${workspaceFolder}/build/project/klib.elf",
11-
"device": "${config:target_cpu}",
11+
"device": "${config:target_cpu_debug}",
1212
"interface": "swd",
1313
"request": "launch",
1414
"type": "cortex-debug",
@@ -31,7 +31,7 @@
3131
"name": "Attach Core #0",
3232
"cwd": "${workspaceFolder}",
3333
"executable": "${workspaceFolder}/build/project/klib.elf",
34-
"device": "${config:target_cpu}",
34+
"device": "${config:target_cpu_debug}",
3535
"interface": "swd",
3636
"request": "attach",
3737
"type": "cortex-debug",

.vscode/settings.json.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2+
// target cpu, should be the same as in the defined
3+
// this can be used in the c_cpp_properties.json for
4+
// intellisense
25
"target_cpu": "lpc1756",
6+
7+
// target cpu to use when using launch.json
8+
"target_cpu_debug": "lpc1756",
39
"cmake.configureSettings": {
410
"TARGET_CPU": "lpc1756",
511
"TARGET_LOW_POWER_SLEEP": "1"

0 commit comments

Comments
 (0)