Created
November 29, 2019 04:41
-
-
Save jaredwolff/a13cf10c33752d4263d05ec3332c39c7 to your computer and use it in GitHub Desktop.
Particle launch.json For Debugging
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
{ | |
"version": "0.1.0", | |
"configurations": [ | |
{ | |
"type": "cortex-debug", | |
"request": "attach", | |
"name": "Particle Debugger (photon, p1, electron)", | |
"servertype": "openocd", | |
"interface": "swd", | |
"device": "STM32F205RG", | |
"cwd": "${workspaceRoot}", | |
"executable": "${command:particle.getDebuggerExecutable}", | |
"preLaunchTask": "Particle: Flash application for debug (local)", | |
"armToolchainPath": "${command:particle.getDebuggerCompilerDir}", | |
"svdFile": "${command:particle.getDebuggerSVDFile}", | |
"searchDir": [ | |
"${command:particle.getDebuggerSearchDir}" | |
], | |
"configFiles": [ | |
"interface/cmsis-dap.cfg", | |
"target/stm32f2x.cfg" | |
], | |
"postAttachCommands": [ | |
"monitor reset halt" | |
], | |
"windows": { | |
"configFiles": [ | |
"interface\\cmsis-dap.cfg", | |
"target\\stm32f2x.cfg" | |
] | |
} | |
}, | |
{ | |
"type": "cortex-debug", | |
"request": "attach", | |
"name": "Particle Debugger (argon, boron / bsom, xenon)", | |
"servertype": "openocd", | |
"interface": "swd", | |
"device": "nRF52840_xxAA", | |
"cwd": "${workspaceRoot}", | |
"executable": "${command:particle.getDebuggerExecutable}", | |
"preLaunchTask": "Particle: Flash application for debug (local)", | |
"armToolchainPath": "${command:particle.getDebuggerCompilerDir}", | |
"svdFile": "${command:particle.getDebuggerSVDFile}", | |
"searchDir": [ | |
"${command:particle.getDebuggerSearchDir}" | |
], | |
"configFiles": [ | |
"interface/cmsis-dap.cfg", | |
"target/nrf52-particle.cfg" | |
], | |
"postAttachCommands": [ | |
"monitor reset halt" | |
], | |
"windows": { | |
"configFiles": [ | |
"interface\\cmsis-dap.cfg", | |
"target\\nrf52-particle.cfg" | |
] | |
} | |
}, | |
{ | |
"type": "cortex-debug", | |
"request": "attach", | |
"name": "Particle Programmer Shield v1.0 (photon, p1, electron)", | |
"servertype": "openocd", | |
"interface": "swd", | |
"device": "STM32F205RG", | |
"cwd": "${workspaceRoot}", | |
"executable": "${command:particle.getDebuggerExecutable}", | |
"preLaunchTask": "Particle: Flash application for debug (local)", | |
"armToolchainPath": "${command:particle.getDebuggerCompilerDir}", | |
"svdFile": "${command:particle.getDebuggerSVDFile}", | |
"searchDir": [ | |
"${command:particle.getDebuggerSearchDir}" | |
], | |
"configFiles": [ | |
"interface/particle-ftdi.cfg", | |
"target/stm32f2x.cfg" | |
], | |
"postAttachCommands": [ | |
"monitor reset halt" | |
], | |
"windows": { | |
"configFiles": [ | |
"interface\\particle-ftdi.cfg", | |
"target\\stm32f2x.cfg" | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment