Page 1 of 1

OpenOCD error message

Posted: Sun Nov 12, 2017 12:37 am
by rajivtctech
I have just bought an STLink V2 JTAG dongle.
I use Ubuntu 16.04.
I installed OpenOCD via Synaptic.
lsusb shows me the STLink JTAG device.
I want to use the STLink to program an STM32F103C8T8 bluepill device.
When I startup openocd via a terminal, I get the following message:
rajiv@rajiv-desktop:~$ openocd
Open On-Chip Debugger 0.9.0 (2015-09-02-10:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
embedded:startup.tcl:60: Error: Can't find openocd.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 60
Error: Debug Adapter has to be specified, see "interface" command
embedded:startup.tcl:60: Error:
in procedure 'script'
at file "embedded:startup.tcl", line 60
What do I have to do, to get this going?

Re: OpenOCD error message

Posted: Tue Nov 14, 2017 11:03 pm
by parvepratik
Hi Rajiv,Please read manual the launching command has to something like this
>openocd -f <adopter_specific_config_file>