# Workbench Debugging Problems

**URL:** <https://community.particle.io/t/workbench-debugging-problems/67298>\
**Category:** Particle Workbench\
**Created:** [August 2, 2024, 2:52am UTC](https://community.particle.io/t/workbench-debugging-problems/67298 "2024-08-02T02:52:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [August 2, 2024, 2:52am UTC](https://community.particle.io/t/workbench-debugging-problems/67298/1 "2024-08-02T02:52:22Z")

</div>

I am attempting to debug the TinkerBreak tutorial software, and I am closely following the instructions given for Gen3 products in "Particle Workbench Getting Started".  
device is a Boron 04X running OS 6.1.0. the software compiles and flash successfully, but after a few seconds I get this list of problems.I have tried to interpret the errors, but they are only gibberish to me. Can anyone decipher what I am doing wrong?

Thanks in advance!!  
Bdrew

Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: [GitHub - Marus/cortex-debug: Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers](https://github.com/Marus/cortex-debug#usage)  
Reading symbols from C:/Users/berna/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-objdump.exe --syms -C -h -w c:/Users/berna/Particle\_Workbench\_Projects/TinkerBreak/TinkerBreak/target/6.1.0/boron/TinkerBreak.elf  
Reading symbols from c:/users/berna/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-nm.exe --defined-only -S -l -C -p c:/Users/berna/Particle\_Workbench\_Projects/TinkerBreak/TinkerBreak/target/6.1.0/boron/TinkerBreak.elf  
Launching GDB: "C:\Users\berna\.particle\toolchains\gcc-arm\10.2.1\bin\arm-none-eabi-gdb.exe" -q --interpreter=mi2  
IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems  
Launching gdb-server: "C:\Users\berna\.particle\toolchains\openocd\0.11.0-particle.4\bin\openocd.exe" -c "gdb\_port 50000" -c "tcl\_port 50001" -c "telnet\_port 50002" -s "C:\Users\berna\.particle\toolchains\openocd\0.11.0-particle.4\share\openocd\scripts" -f "c:/Users/berna/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f "interface\cmsis-dap.cfg" -f "target\nrf52-particle.cfg" -c "CDRTOSConfigure FreeRTOS"  
Please check TERMINAL tab (gdb-server) for output from C:\Users\berna.particle\toolchains\openocd\0.11.0-particle.4\bin\openocd.exe  
Finished reading symbols from objdump: Time: 197 ms  
C:\Users\berna.particle\toolchains\gcc-arm\10.2.1\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.  
Finished reading symbols from nm: Time: 283 ms  
Output radix now set to decimal 10, hex a, octal 12.  
Input radix now set to decimal 10, hex a, octal 12.  
OpenOCD: GDB Server Quit Unexpectedly. See gdb-server output in TERMINAL tab for more details.

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [August 2, 2024, 4:25pm UTC](https://community.particle.io/t/workbench-debugging-problems/67298/2 "2024-08-02T16:25:45Z")

</div>

Do you have the output from the gdb-server terminal tab? It should be one of the tabs in the lower right corner of the window and may have a reason why the process exited.

> OpenOCD: GDB Server Quit Unexpectedly. See gdb-server output in TERMINAL tab for more details.

---

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [August 2, 2024, 6:00pm UTC](https://community.particle.io/t/workbench-debugging-problems/67298/3 "2024-08-02T18:00:35Z")

</div>

This is the output from the gdb-server tab output.

Waiting for gdb server to start...[2024-08-02T17:52:03.211Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.  
"C:\Users\berna\.particle\toolchains\openocd\0.11.0-particle.4\bin\openocd.exe" -c "gdb\_port 50000" -c "tcl\_port 50001" -c "telnet\_port 50002" -s "C:\Users\berna\.particle\toolchains\openocd\0.11.0-particle.4\share\openocd\scripts" -f "c:/Users/berna/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f "interface\cmsis-dap.cfg" -f "target\nrf52-particle.cfg" -c "CDRTOSConfigure FreeRTOS"  
xPack OpenOCD x86\_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-17:32)  
Licensed under GNU GPL v2  
For bug reports, read  
[OpenOCD: Bug Reporting](http://openocd.org/doc/doxygen/bugs.html)  
CDLiveWatchSetup  
Info : auto-selecting first available session transport "swd". To override use 'transport select '.  
DEPRECATED! use 'adapter speed' not 'adapter\_khz'  
c:/Users/berna/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl: nrf52.cpu configure -rtos FreeRTOS  
Info : Listening on port 50001 for tcl connections  
Info : Listening on port 50002 for telnet connections  
Error: CMSIS-DAP command CMD\_INFO failed.

[2024-08-02T17:52:04.695Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed  
GDB server session ended. This terminal will be reused, waiting for next session to start...

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [August 2, 2024, 7:43pm UTC](https://community.particle.io/t/workbench-debugging-problems/67298/4 "2024-08-02T19:43:40Z")

</div>

I think the problem might be related to the post below. It is possible that the wrong version of openocd is being used, which is not compatible with the debugger plug-in, causing it to exit ("Error: CMSIS-DAP command CMD\_INFO failed").

> [@Still using OpenOCD in Workbench?](https://community.particle.io/t/still-using-openocd-in-workbench/67295):
>
> Is Particle still using OpenOCD (auto-installed) via the Workbench plugin to VS Code? Seems when I installed Workbench on a new PC a dir went away; specifically - \*used to look like this (could run bin\openocd.exe from this 'adhoc' ) - [image] \*but now looks like this (no 'adhoc' folder, else 'particle' still present but bin\openocd.exe doesn't work from here) - [image] To reiterate, both 'adhoc' and 'particle' have "bin\openocd.exe" nested under them, but the 'new setup' (thru 'particle' …

---

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [August 3, 2024, 12:40pm UTC](https://community.particle.io/t/workbench-debugging-problems/67298/5 "2024-08-03T12:40:17Z")

</div>

if I uninstall workbench and then reinstall, will that work? Or will I be digging a bigger hole?

Thanks  
Bernard

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [September 2, 2024, 10:40pm UTC](https://community.particle.io/t/workbench-debugging-problems/67298/6 "2024-09-02T22:40:45Z")

</div>

Closed on September 2, 2024, 10:40pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
