-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from visrealm/dev
0.4.3
- Loading branch information
Showing
11 changed files
with
262 additions
and
48 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,22 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Pico", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"${userHome}/.pico-sdk/sdk/2.0.0/**" | ||
], | ||
"forcedInclude": [ | ||
"${workspaceFolder}/build/generated/pico_base/pico/config_autogen.h", | ||
"${userHome}/.pico-sdk/sdk/2.0.0/src/common/pico_base_headers/include/pico.h" | ||
], | ||
"defines": [], | ||
"compilerPath": "${userHome}/.pico-sdk/toolchain/13_3_Rel1/bin/arm-none-eabi-gcc", | ||
"compileCommands": "${workspaceFolder}/build/compile_commands.json", | ||
"cStandard": "c17", | ||
"cppStandard": "c++14", | ||
"intelliSenseMode": "linux-gcc-arm" | ||
} | ||
], | ||
"version": 4 | ||
} |
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,16 @@ | ||
[ | ||
{ | ||
"name": "Pico", | ||
"compilers": { | ||
"C": "${userHome}/.pico-sdk/toolchain/13_2_Rel1/bin/arm-none-eabi-gcc.exe", | ||
"CXX": "${userHome}/.pico-sdk/toolchain/13_2_Rel1/bin/arm-none-eabi-gcc.exe" | ||
}, | ||
"toolchainFile": "${env:USERPROFILE}/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/pico_arm_cortex_m0plus_gcc.cmake", | ||
"environmentVariables": { | ||
"PATH": "${command:raspberry-pi-pico.getEnvPath};${env:PATH}" | ||
}, | ||
"cmakeSettings": { | ||
"Python3_EXECUTABLE": "${command:raspberry-pi-pico.getPythonPath}" | ||
} | ||
} | ||
] |
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,9 @@ | ||
{ | ||
"recommendations": [ | ||
"marus25.cortex-debug", | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"ms-vscode.vscode-serial-monitor", | ||
"raspberry-pi.raspberry-pi-pico", | ||
] | ||
} |
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,69 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Pico Debug (Cortex-Debug)", | ||
"cwd": "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", | ||
"executable": "${command:raspberry-pi-pico.launchTargetPath}", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "openocd", | ||
"serverpath": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", | ||
"gdbPath": "${command:raspberry-pi-pico.getGDBPath}", | ||
"device": "${command:raspberry-pi-pico.getChipUppercase}", | ||
"configFiles": [ | ||
"interface/cmsis-dap.cfg", | ||
"target/${command:raspberry-pi-pico.getTarget}.cfg" | ||
], | ||
"svdFile": "${userHome}/.pico-sdk/sdk/2.0.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.svd", | ||
"runToEntryPoint": "main", | ||
// Fix for no_flash binaries, where monitor reset halt doesn't do what is expected | ||
// Also works fine for flash binaries | ||
"overrideLaunchCommands": [ | ||
"monitor reset init", | ||
"load \"${command:raspberry-pi-pico.launchTargetPath}\"" | ||
], | ||
"openOCDLaunchCommands": [ | ||
"adapter speed 5000" | ||
] | ||
}, | ||
{ | ||
"name": "Pico Debug (Cortex-Debug with external OpenOCD)", | ||
"cwd": "${workspaceRoot}", | ||
"executable": "${command:raspberry-pi-pico.launchTargetPath}", | ||
"request": "launch", | ||
"type": "cortex-debug", | ||
"servertype": "external", | ||
"gdbTarget": "localhost:3333", | ||
"gdbPath": "${command:raspberry-pi-pico.getGDBPath}", | ||
"device": "${command:raspberry-pi-pico.getChipUppercase}", | ||
"svdFile": "${userHome}/.pico-sdk/sdk/2.0.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.svd", | ||
"runToEntryPoint": "main", | ||
// Give restart the same functionality as runToEntryPoint - main | ||
"postRestartCommands": [ | ||
"break main", | ||
"continue" | ||
] | ||
}, | ||
{ | ||
"name": "Pico Debug (C++ Debugger)", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"cwd": "${workspaceRoot}", | ||
"program": "${command:raspberry-pi-pico.launchTargetPath}", | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "${command:raspberry-pi-pico.getGDBPath}", | ||
"miDebuggerServerAddress": "localhost:3333", | ||
"debugServerPath": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", | ||
"debugServerArgs": "-f interface/cmsis-dap.cfg -f target/${command:raspberry-pi-pico.getTarget}.cfg -c \"adapter speed 5000\"", | ||
"serverStarted": "Listening on port .* for gdb connections", | ||
"filterStderr": true, | ||
"hardwareBreakpoints": { | ||
"require": true, | ||
"limit": 4 | ||
}, | ||
"preLaunchTask": "Flash", | ||
"svdPath": "${userHome}/.pico-sdk/sdk/2.0.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Compile Project", | ||
"type": "process", | ||
"isBuildCommand": true, | ||
"command": "${userHome}/.pico-sdk/ninja/v1.12.1/ninja", | ||
"args": ["-C", "${workspaceFolder}/build"], | ||
"group": "build", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated" | ||
}, | ||
"problemMatcher": "$gcc", | ||
"windows": { | ||
"command": "${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1/ninja.exe" | ||
} | ||
}, | ||
{ | ||
"label": "Run Project", | ||
"type": "process", | ||
"command": "${env:HOME}/.pico-sdk/picotool/2.0.0/picotool/picotool", | ||
"args": [ | ||
"load", | ||
"${command:raspberry-pi-pico.launchTargetPath}", | ||
"-fx" | ||
], | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated" | ||
}, | ||
"problemMatcher": [], | ||
"windows": { | ||
"command": "${env:USERPROFILE}/.pico-sdk/picotool/2.0.0/picotool/picotool.exe" | ||
} | ||
}, | ||
{ | ||
"label": "Flash", | ||
"type": "process", | ||
"command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", | ||
"args": [ | ||
"-s", | ||
"${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", | ||
"-f", | ||
"interface/cmsis-dap.cfg", | ||
"-f", | ||
"target/${command:raspberry-pi-pico.getTarget}.cfg", | ||
"-c", | ||
"adapter speed 5000; program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset exit" | ||
], | ||
"problemMatcher": [], | ||
"windows": { | ||
"command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", | ||
} | ||
} | ||
] | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.