Ubuntu 13.04 64 bit Open OCD 0.7.0

I am new to both STM32F3 as well as Open OCD.

I have been following the tutorial on this

http://engineering-diy.blogspot.in/2012 … 0180092033

to setup eclipse as well as open ocd.

I downloaded OpenOCD from sourceforge, built it and installed.

Now when I run the command

openocd -f /usr/local/share/openocd/scripts/board/stm32f3discovery.cfg

Open On-Chip Debugger 0.7.0 (2013-12-11-08:35)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.sourceforge.net/doc/doxygen/bugs.html

Error: The specified debug interface was not found (hla)

The following debug interfaces are available:

Runtime Error: /usr/local/share/openocd/scripts/interface/stlink-v2.cfg:5:

in procedure ‘script’

at file “embedded:startup.tcl”, line 58

at file “/usr/local/share/openocd/scripts/board/stm32f3discovery.cfg”, line 4

in procedure ‘interface’ called at file “/usr/local/share/openocd/scripts/interface/stlink-v2.cfg”, line 5

On Open OCD bug list there is a bug complaining about stlink not enabled during compile time

http://sourceforge.net/apps/trac/openocd/ticket/66

Is there a work around or a patch for me to get going?

It was my fault, I didn’t give the correct options for configure while building the open OCD on rerunning configure with the following and rebuilding resolved the issue.

./configure --enable-maintainer-mode --enable-stlink