Skip to content

Commit dec4bab

Browse files
authored
Add VSCode ST-link debug config (#567)
1 parent 6192775 commit dec4bab

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.vscode/launch.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,25 @@
4040
"break main",
4141
"continue"
4242
]
43+
},
44+
{
45+
"cwd": "${workspaceRoot}",
46+
// TODO: find better way to get latest build filename
47+
"executable": "./build/src/pinetime-app-1.3.0.out",
48+
"name": "Debug OpenOCD ST-LINK pinetime-app-1.3.0.out",
49+
"request": "launch",
50+
"type": "cortex-debug",
51+
"showDevDebugOutput": false,
52+
"servertype": "openocd",
53+
"runToMain": true,
54+
// Only use armToolchainPath if your arm-none-eabi-gdb is not in your path (some GCC packages does not contain arm-none-eabi-gdb)
55+
"armToolchainPath": "${workspaceRoot}/../gcc-arm-none-eabi-9-2020-q2-update/bin",
56+
"svdFile": "${workspaceRoot}/nrf52.svd",
57+
"configFiles": [
58+
"interface/stlink.cfg",
59+
"target/nrf52.cfg"
60+
],
4361
}
4462

4563
]
46-
}
64+
}

0 commit comments

Comments
 (0)