Looking for some guidance on using the debugging feature now provided with workbench.
I have OpenOCD installed, alpha 5 of particle workbench, and am using the ST-LINK/V2 with a photon, on a mac.
I have a clean project that is then compiled and flashed for debugging.
My launch file is as follows:
{
"version": "0.1.0",
"configurations": [
{
"cwd": "${workspaceRoot}",
"executable": "./target/MY_FILE_NAME.elf",
"name": "Debug Microcontroller",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"device": "STM32F205RG",
"interface": "swd",
"configFiles":[
"interface/stlink-v2.cfg",
"target/stm32f2x.cfg"
],
},
]
}
From there Debug -> Start Debugging
I get the following message in the Adapter Output window:
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “hla_swd”. To override use 'transport select '.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.211466
Info : stm32f2x.cpu: hardware has 6 breakpoints, 4 watchpoints
But receive the following message in the bottom right corner as a popup:
Debug adapter process has terminated unexpectedly (exit code: null)
The ST-Link is flashing Red/Green with a pause Green, this appears to be normal from the ST-Link documentation.
I was hoping to reference this link but it doesn’t exist any more:
https://docs.particle.io/faq/particle-tools/jtag/electron/#using-openocd
found the new location:
https://docs.particle.io/support/particle-tools-faq/jtag/
The server has started because I am unable to try debugging without stopping the running server (which I don’t know how to do without restarting, help here would be nice too)
Any tips on what I might be doing wrong are greatly appreciated.