forked from micro-ROS/micro_ros_raspberrypi_pico_sdk
-
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.
Merge branch 'jazzy' of https://github.com/catweasel999/micro_ros_ras…
…pberrypi_pico_sdk into jazzy
- Loading branch information
Showing
6 changed files
with
129 additions
and
59 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,54 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Pico Debug", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "openocd", | ||
// This may need to be "arm-none-eabi-gdb" for some previous builds | ||
"gdbPath": "gdb-multiarch", | ||
"device": "RP2040", | ||
"configFiles": [ | ||
// This may need to be "interface/picoprobe.cfg" for some previous builds | ||
"interface/cmsis-dap.cfg", | ||
"target/rp2040.cfg" | ||
], | ||
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", | ||
"runToEntryPoint": "main", | ||
// Work around for stopping at main on restart | ||
"postRestartCommands": [ | ||
"break main", | ||
"continue" | ||
], | ||
"openOCDLaunchCommands": [ | ||
"adapter speed 5000" | ||
] | ||
}, | ||
{ | ||
"name": "minicom 0", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "minicom -b 115200 -o -D /dev/ttyACM0", | ||
}, | ||
{ | ||
"name": "minicom 1", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "minicom -b 115200 -o -D /dev/ttyACM1", | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Pico with minicom", | ||
"stopAll": true, | ||
"configurations": [ | ||
"minicom 0", | ||
"minicom 1", | ||
"Pico Debug" | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,54 +1,58 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Pico Debug", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "openocd", | ||
// This may need to be "arm-none-eabi-gdb" for some previous builds | ||
"gdbPath": "gdb-multiarch", | ||
"device": "RP2040", | ||
"configFiles": [ | ||
// This may need to be "interface/picoprobe.cfg" for some previous builds | ||
"interface/cmsis-dap.cfg", | ||
"target/rp2040.cfg" | ||
], | ||
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", | ||
"runToEntryPoint": "main", | ||
// Work around for stopping at main on restart | ||
"postRestartCommands": [ | ||
"break main", | ||
"continue" | ||
], | ||
"openOCDLaunchCommands": [ | ||
"adapter speed 5000" | ||
] | ||
}, | ||
{ | ||
"name": "minicom 0", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "minicom -b 115200 -o -D /dev/ttyACM0", | ||
}, | ||
{ | ||
"name": "minicom 1", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "minicom -b 115200 -o -D /dev/ttyACM1", | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Pico with minicom", | ||
"stopAll": true, | ||
"configurations": [ | ||
"minicom 0", | ||
"minicom 1", | ||
"Pico Debug" | ||
] | ||
} | ||
] | ||
} | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Pico Debug (Cortex-Debug)", | ||
"cwd": "${workspaceFolder}", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "openocd", | ||
"gdbPath": "arm-none-eabi-gdb", | ||
"device": "RP2040", | ||
"configFiles": [ | ||
"interface/cmsis-dap.cfg", | ||
"target/rp2040.cfg" | ||
], | ||
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", | ||
"runToEntryPoint": "main", | ||
"openOCDLaunchCommands": [ | ||
"adapter speed 5000" | ||
] | ||
}, | ||
{ | ||
"name": "Pico Debug (Cortex-Debug with external OpenOCD)", | ||
"cwd": "${workspaceFolder}", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "external", | ||
"gdbTarget": "localhost:3333", | ||
"gdbPath": "arm-none-eabi-gdb", | ||
"device": "RP2040", | ||
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", | ||
"runToEntryPoint": "main" | ||
}, | ||
{ | ||
"name": "Pico Debug (C++ Debugger)", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"program": "${command:cmake.launchTargetPath}", | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "arm-none-eabi-gdb", | ||
"miDebuggerServerAddress": "localhost:3333", | ||
"debugServerPath": "openocd", | ||
"debugServerArgs": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"", | ||
"serverStarted": "Listening on port .* for gdb connections", | ||
"filterStderr": true, | ||
"stopAtEntry": true, | ||
"hardwareBreakpoints": { | ||
"require": true, | ||
"limit": 4 | ||
}, | ||
"preLaunchTask": "Flash", | ||
"svdPath": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd" | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
"folders": [ | ||
{ | ||
"path": "." | ||
}, | ||
{ | ||
"path": "../../Documents/Pico-v1.5.1" | ||
} | ||
], | ||
"settings": { | ||
|
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