OpenOCD with Eclipse

If I understand it right, OpenOCD is a gdbserver, so to debug using Eclipse, what do I need?

I guess a tool chain for compilation (if I want to compile too).

CDT if I want to make it easy with C/C++ programs.

Zylin to “talk” with gdbserver

gdbserver to handle the debugging requests

a JTAG HW driver (J-link, ST-link,…)

Do I need a GDB server?

In many articles they choose a certain tool chain that includes a gdbserver.

Like here (it says OpenOCD is JTAG-server and a separate gdbserver is needed):

http://discovertheexperience.blogspot.f … et_09.html

If I need a separate gdbserver, where I should get one that supports many architectures.

(I wouldn’t like to install a new set of SW for every new architecture.)

Windows is the first priority, but Linux is very close.

Hi Turboscrew,

You have all the essentials listed

  • - toolchain: linaro may be the most popular now. Close between that and mentor sourcery-tools (previously codesourcery)
  • - Eclipse with CDT, exactly as you say
  • - I think the zylin plugin probably *was* needed in 2008 when that blog was written. It has not been needed since [not sure - several years]
  • - As you say, a hardware JTAG interface of some sort. If you're just getting started, you can postpone that decision by starting with a development board that has a USB JTAG interface built in.
  • - openOCD is the only gdbserver you need.
  • I don't have my "main" machine running at the moment and can't provide config details. (besides, I'm still running Ganymede; the setup process may look different on Juno.)

    -Hugh

    Thanks, Hugh.

    Any idea about the tool chain differencies?

    (My main interest is supported architectures.)

    And which Eclipse might be the best choice?

    (Are there known bugs or peculiarities.)

    I hastily assumed that you’re mainly interested in Cortex-M series parts, and possibly older similar parts like LPC21xx. If that is that case, the 4.7-2013.q3 Bare Metal binary distibution at Linaro is probably the best place to start. Linaro provides libraries compiled for Cortex-M4 Hard FP while Mentor / Sourcery reserves those libraries for paying customers. (Admittedly, not a major difference.)

    I would install Eclipse Juno. The only reason I’m running such an old version is that I actually don’t use it much. (and that when I upgrade I’ll probably have to tweak project settings to get my old projects to work.)

    If you’re more interested in Cortex-A processors, I really don’t know enough to advise. (I’m in the process of upgrading my system so I can properly install the full version of openembedded, but that is for another topic.)

    At the moment STM32F4xx is being tampered with.

    Earlier ones were TI C6000 series device and before that a PowerPC based uC.

    Before that atMega169, but not via JTAG. :wink:

    Just to give sone idea of the “range”.