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
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.
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.
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
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...
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").