Greeting all,
I’ve been trying to get debugging working for some time now. I followed the lasted tutorial material published under “Workbench”. My environment:
- Visual Studio Code on Mac OS X
- Particle debugger
- Target Argon (DeviceOS, 0.9.0, TinkerBreak code)
- Workbench Core 1.2.1
I executed Particle “New Project” and “Configure Workspace for Device”, selected the debug pulldown for (argon, boron, xenon) and then finally started debug from the green triangle button with the device in DFU mode (flashing yellow).
The code all compiled with no errors.
It failed (stopped) with the error as shown below:
dfu-util: No DFU capable USB device available
make[1]: *** [program-dfu] Error 74
make[1]: Leaving directory `/Users/glenn/.particle/toolchains/deviceOS/0.9.0/firmware-0.9.0/main’
make: *** [flash-debug] Error 2
The terminal process terminated with exit code: 2
Does anyone have any ideas on how to progress?
My setting.json and launce.json entries are below:
settings.json
{
“extensions.ignoreRecommendations”: true,
“C_Cpp.default.configurationProvider”: “particle.particle-vscode-core”,
“files.associations”: {
"*.ino": “cpp”
},
“particle.targetDevice”: “Argon-MeshGW1”,
“particle.firmwareVersion”: “0.9.0”,
“particle.targetPlatform”: “argon”,
“cortex-debug.openocdPath”: “/Users/glenn/.particle/toolchains/openocd/0.10.0-particle.1/bin/openocd”
}
launch.json
{
“type”: “cortex-debug”,
“request”: “attach”,
“name”: “Particle Debugger (argon, boron, 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”
],
“windows”: {
“configFiles”: [
“interface\cmsis-dap.cfg”,
“target\nrf52-particle.cfg”
]
}
},
Thanks,
Glenn.