SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By rajivtctech
#196937
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?
By parvepratik
#196962
Hi Rajiv,Please read manual the launching command has to something like this
>openocd -f <adopter_specific_config_file>