cancel
Showing results for 
Search instead for 
Did you mean: 

how to set up OpenOCD in eclipse

SS.Sagar
Associate III
Posted on January 10, 2016 at 10:15

Hi,

I need help to install openOCD with eclipse. i have install eclipse and gcc compiler. it is compiling also. but i tried to set up openOCD and got some errors. Error as following.

Open On-Chip Debugger 0.9.0 (2015-05-19-12:06)
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

plz help me this. I m using nucleo103RB. #nucleo103rb #eclipse
5 REPLIES 5
Radosław
Senior II
Posted on January 10, 2016 at 13:07

You don't provide enought data to solve your problem.

I assume that You are using clean eclipse distribution (not AC6) and  original openOCD.

Sow, the best practice is to  to create a openocd.cfg script in your project. Then  run openocd in this location.  At start point please copy a board script from OpenOCD.

Or by option -f  pass correct script for your board to openocd like thiss : -f board/st_nucleo_f103rb.cfg.
SS.Sagar
Associate III
Posted on January 10, 2016 at 18:02

Hi,

Thanks. i m using following eclise version.

Eclipse IDE for C/C++ Developers

Version: Mars.1 Release (4.5.1)

and i have downloaded ocd openocd-0.9.0. 

Radosław
Senior II
Posted on January 10, 2016 at 18:26

It's working now? 

carmine
Associate II
Posted on January 10, 2016 at 18:44

Take a look to these tutorials from my blog:

http://www.carminenoviello.com/en/2014/12/28/setting-gcceclipse-toolchain-stm32nucleo-part-1/

They should help you understanding how to setup OpenOCD in Eclipse. The problem you are facing is probably related to a wrong OpenOCD working directory.

TarekB-ST
Associate III
Posted on January 11, 2016 at 11:12

Hello,

You can use

http://www.openstm32.org/System+Workbench+for+STM32

(SW), which includes the latest version of openocd with support of all STM32 devices and boards, of course with GCC compiler.

Regards,

TarekB