This repository has been archived by the owner on Jul 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
122 additions
and
8 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
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ Cargo.lock | |
target/ | ||
|
||
*.log | ||
*.svd | ||
|
||
# editor files | ||
.vscode/* | ||
|
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,58 @@ | ||
{ | ||
"version": "0.2.0", | ||
"inputs": [ | ||
{ | ||
"type": "pickString", | ||
"id": "exampleName", | ||
"description": "Which example would you like to run?", | ||
"options": [ | ||
"graphics", | ||
"music" | ||
], | ||
"default": "music" | ||
}, | ||
{ | ||
"type": "pickString", | ||
"id": "configuration", | ||
"description": "Choose a configuration", | ||
"default": "debug", | ||
"options": [ | ||
"debug", | ||
"release", | ||
] | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"cwd": "${workspaceFolder}", | ||
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/${input:exampleName}", | ||
"name": "Pico Debug", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"gdbPath": "gdb-multiarch", | ||
"gdbTarget": "localhost:3333", | ||
"servertype": "openocd", | ||
"configFiles": [ | ||
"interface/picoprobe.cfg", | ||
"interface/cmsis-dap.cfg", | ||
"target/rp2040.cfg" | ||
], | ||
"searchDir": [], | ||
"runToEntryPoint": "main", | ||
"showDevDebugOutput": "none", | ||
"svdFile": "rp2040.svd", | ||
"svdPath": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", | ||
"preLaunchTask": "Build Debug", | ||
"preLaunchCommands": [ | ||
"monitor init", | ||
"monitor reset init", | ||
"monitor halt" | ||
], | ||
"postRestartCommands": [ | ||
"break main", | ||
"continue" | ||
] | ||
} | ||
|
||
] | ||
} |
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
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
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,23 @@ | ||
# connect to OpenOCD on TCP port 3333 | ||
target extended-remote :3333 | ||
|
||
# print demangled function/variable symbols | ||
set print asm-demangle on | ||
|
||
# set backtrace limit to not have infinite backtrace loops | ||
set backtrace limit 32 | ||
|
||
# detect unhandled exceptions, hard faults and panics | ||
break DefaultHandler | ||
break HardFault | ||
|
||
# *try* stopping at the user entry point (it might be gone due to inlining) | ||
break main | ||
|
||
monitor arm semihosting enable | ||
|
||
# load the application binary onto the Pico's flash | ||
load | ||
|
||
# start the process but immediately halt the processor | ||
stepi |