SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By holobeat
#171949
Hello,

I have installed OpenOCD on my Mac OSX using brew install [--HEAD] openocd
However, when I run ./openocd -f board/st_nucleo_f401re.cfg, I get errors that the specified debug interface was not found. Was openOCD compiled on my machine without stlink support? If so, is it possible to enforce openOCD stlink support during brew install process compilation (the --HEAD option)?

This is the error I get when I run ./openocd -f board/st_nucleo_f401re.cfg:

Open On-Chip Debugger 0.9.0-dev-snapshot (2014-06-13-23:19)
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:
1: dummy
2: jtag_vpi
3: buspirate
4: remote_bitbang
Runtime Error: /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/interface/stlink-v2-1.cfg:5:
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file "/usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/board/st_nucleo_f401re.cfg", line 4
in procedure 'interface' called at file "/usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/interface/stlink-v2-1.cfg", line 5
By hsutherl
#171970
Hello holobeat.

I don't know anything about OSX brew. On a standard linux install you select stlink during configure. On those systems ./configure --help will show you the options you need to pass to ./configure