Skip to content

Commit 5235b9b

Browse files
Add VSCode launch config to attach debugger to running micro:bit. (#17)
1 parent f10556a commit 5235b9b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "(attach) micro:bit OpenOCD",
5+
"cwd": "${workspaceFolder}",
6+
"executable": "built/codal/build/MICROBIT",
7+
"request": "attach",
8+
"type": "cortex-debug",
9+
"servertype": "openocd",
10+
"configFiles": [
11+
"interface/cmsis-dap.cfg",
12+
"target/nrf52.cfg"
13+
],
14+
"interface": "swd",
15+
"svdFile": "built/codal/libraries/codal-nrf52/nrfx/mdk/nrf52833.svd",
16+
"preAttachCommands": [],
17+
"openOCDLaunchCommands": [
18+
"adapter speed 8000"
19+
]
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)