-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VSCode launch file to be able to debug MicroPython builds.
- Loading branch information
1 parent
0c932d2
commit d64efa2
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "micro:bit PyOCD Cortex Debug", | ||
"cwd": "${workspaceFolder}", | ||
"executable": "micropython-microbit-v2/lib/codal/build/MICROBIT", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "pyocd", | ||
"interface": "swd", | ||
"device": "nrf52", | ||
"targetId": "nrf52", | ||
"svdFile": "micropython-microbit-v2/lib/codal/libraries/codal-nrf52/nrfx/mdk/nrf52833.svd", | ||
"preLaunchCommands": [ | ||
"load micropython-microbit-v2/lib/codal/build/MICROBIT", | ||
"enable breakpoint", | ||
"monitor reset" | ||
] | ||
}, | ||
{ | ||
"name": "micro:bit OpenOCD Cortex Debug", | ||
"cwd": "${workspaceFolder}", | ||
"executable": "micropython-microbit-v2/lib/codal/build/MICROBIT", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "openocd", | ||
"configFiles": [ | ||
"interface/cmsis-dap.cfg", | ||
"target/nrf52.cfg" | ||
], | ||
"interface": "swd", | ||
"svdFile": "micropython-microbit-v2/lib/codal/libraries/codal-nrf52/nrfx/mdk/nrf52833.svd", | ||
"preLaunchCommands": [ | ||
"load micropython-microbit-v2/lib/codal/build/MICROBIT", | ||
"enable breakpoint", | ||
"monitor reset" | ||
], | ||
"openOCDLaunchCommands": [ | ||
"adapter speed 8000" | ||
] | ||
}, | ||
{ | ||
"name": "(attach) micro:bit OpenOCD Cortex Debug", | ||
"cwd": "${workspaceFolder}", | ||
"executable": "micropython-microbit-v2/lib/codal/build/MICROBIT", | ||
"request": "attach", | ||
"type": "cortex-debug", | ||
"servertype": "openocd", | ||
"configFiles": [ | ||
"interface/cmsis-dap.cfg", | ||
"target/nrf52.cfg" | ||
], | ||
"interface": "swd", | ||
"svdFile": "micropython-microbit-v2/lib/codal/libraries/codal-nrf52/nrfx/mdk/nrf52833.svd", | ||
"preAttachCommands": [], | ||
"openOCDLaunchCommands": [ | ||
"adapter speed 8000" | ||
] | ||
} | ||
] | ||
} |