Skip to content

Instantly share code, notes, and snippets.

@jaredwolff
Created November 29, 2019 04:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredwolff/a13cf10c33752d4263d05ec3332c39c7 to your computer and use it in GitHub Desktop.
Save jaredwolff/a13cf10c33752d4263d05ec3332c39c7 to your computer and use it in GitHub Desktop.
Particle launch.json For Debugging
{
"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