# Interfacing with OpenOCD

**URL:** <https://community.sparkfun.com/t/interfacing-with-openocd/10497>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [March 19, 2009, 12:28pm UTC](https://community.sparkfun.com/t/interfacing-with-openocd/10497 "2009-03-19T12:28:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeez](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jeez](https://community.sparkfun.com/u/jeez)\
**Post date:** [March 19, 2009, 12:28pm UTC](https://community.sparkfun.com/t/interfacing-with-openocd/10497/1 "2009-03-19T12:28:10Z")

</div>

Hey guys!

I’m writing my final graduatition project and I’m developing a JTAG debugger for the ERESI framework ([http://www.eresi-project.org/](http://www.eresi-project.org/)). Right now, I’m on my initial research and need to find out how to bootstrap this. I’m planning on do the first version for ARM-JTAG (using LPC-E2124 board, an ARM7TDMI board). I would like to know if is there anything such as an open “libjtag” that I could use for this, or if you think that I will have to write it myself - implementing the arm-jtag protocol from scratch. Anyone could help on this or could point me anything/anyone?

I already had a good discussion about this on #openjtag, as you can see here: [http://pastebin.com/m54f1618](http://pastebin.com/m54f1618) . Looking at your documentation, I saw that I can interface with OpenOCD by using GDB protocol, but I was wondering if this shouldn’t be too much slow. That’s why I’m looking for this “libjtag”.

In summary, I want to access the on-chip debug module using the JTAG (arm-jtag) interface. By doing this, I want to use the ERESI framework to write a jtag debugger. I need a way to interface JTAG and ERESI. This lib would be this interface. Something like ARM7TDMI ↔ LPCE2124 ↔ OpenOCD ↔ ??INTERFACE?? ↔ ERESI

Hope you can help me!

Thanks in advance,

jeez

---

<div class="post-metadata">

**Author:** ![jeez](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jeez](https://community.sparkfun.com/u/jeez)\
**Post date:** [March 22, 2009, 3:52pm UTC](https://community.sparkfun.com/t/interfacing-with-openocd/10497/2 "2009-03-22T15:52:28Z")

</div>

Anyone ?! =/

Ok, so the answer to this seems that GDB protocol is the only way, right ? =/

---

<div class="post-metadata">

**Author:** ![naz](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@naz](https://community.sparkfun.com/u/naz)\
**Post date:** [February 26, 2010, 7:39am UTC](https://community.sparkfun.com/t/interfacing-with-openocd/10497/3 "2010-02-26T07:39:11Z")

</div>

have u find out the solution for that… 🙂
