aboutsummaryrefslogtreecommitdiffstats
path: root/.vscode
diff options
context:
space:
mode:
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/c_cpp_properties.json19
-rw-r--r--.vscode/launch.json26
-rw-r--r--.vscode/settings.json22
3 files changed, 67 insertions, 0 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 0000000..bec5635
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,19 @@
+{
+ "configurations": [
+ {
+ "name": "Linux",
+ "includePath": [
+ "${workspaceFolder}/**",
+ "~/pico/pico-sdk/**",
+ "/home/pi/pico/pico-sdk/src/common/pico_stdlib/include"
+ ],
+ "defines": [],
+ "compilerPath": "/usr/bin/clang",
+ "cStandard": "c11",
+ "cppStandard": "c++14",
+ "intelliSenseMode": "clang-arm",
+ "configurationProvider": "ms-vscode.cmake-tools"
+ }
+ ],
+ "version": 4
+} \ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..a30da91
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,26 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Pico Debug",
+ "cwd": "${workspaceRoot}",
+ "executable": "${command:cmake.launchTargetPath}",
+ "request": "launch",
+ "type": "cortex-debug",
+ "servertype": "openocd",
+ "gdbPath" : "gdb-multiarch",
+ "device": "RP2040",
+ "configFiles": [
+ "interface/raspberrypi-swd.cfg",
+ "target/rp2040.cfg"
+ ],
+ "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
+ "runToMain": true,
+ // Work around for stopping at main on restart
+ "postRestartCommands": [
+ "break main",
+ "continue"
+ ]
+ }
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..ff89d56
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,22 @@
+{
+ // These settings tweaks to the cmake plugin will ensure
+ // that you debug using cortex-debug instead of trying to launch
+ // a Pico binary on the host
+ "cmake.statusbar.advanced": {
+ "debug": {
+ "visibility": "hidden"
+ },
+ "launch": {
+ "visibility": "hidden"
+ },
+ "build": {
+ "visibility": "hidden"
+ },
+ "buildTarget": {
+ "visibility": "hidden"
+ }
+ },
+ "cmake.buildBeforeRun": true,
+ // This may need to be arm-none-eabi-gdb depending on your system
+ "cortex-debug.gdbPath": "gdb-multiarch"
+} \ No newline at end of file