OpenOCD error when running/debugging
Hi all,
I am running into a problem when using a STlink v2 to program one of these cheap chineese STM32F103C8T6 boards that have been going around on ebay. It is only in system workbench that I cannot flash the board, running stlink from the command line lets me flash the board no worries.
The error I am receiving states:
OpenOCD child process termination
Reason:
Unplugged target or STLink already in use or STLink USB driver not installed
Details:
Unplugged target or STLink already in use or STLink USB driver not installed
Open On-Chip Debugger 0.9.0 (2015-09-02-10:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 950 kHz
adapter_nsrst_delay: 100
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 950 kHz
Error: open failed
in procedure ‘init’
in procedure ‘ocd_bouncer’
All i have modified from default was pointing the debugger to my /usr/bin binaries for OpenOCD and my gdb toolchain, although the errors were the same before I changed the binary locations.
I am not sure what other details I can post. It is being run on an Ubuntu 16.04 with workbench Version: 1.15.0.201708311556 machine with OpenOCD 0.9.0.
Any help would be greatly appreciated,
Alex