OpenOCD and jlink dongles ... just cannot get it working :-(

After having a struggle to get the Jlink GDB server running reliably, someone suggested that I try openOCD.

I used the precompiled version of openOCD (that excludes the FDTI code) with the libusb drivers.

It was easy to install and the pair detected and connected to the jlink without problems, but when I tried to actually debug the SAM3U-EK board it failed very early on with a message about not being able to stop the processor, I suspect when it was doing a “reset init”

I decided to try via telnet and found that “reset init” and “reset halt” both failed in the same way.

I am using interface\jlink.cfg and board\atmel_sam3u_ek.cfg when starting openOCD.

Any idea what the problem is ?? openOCD and telnet logs attached.

I have tried both the 0.4.0 and latest 0.5.0 releases and both are the same :frowning:

As an openOCD newbie, I suspect that I am missing something … any help welcome.

TIA

Dave

I have been able to use the j-link with imx35 and LPC32x0 targets. However it is relatively slow (see [post).

I’d guess it has to do with your target configuration. The processor is not quite in the right state. Have you tried the various SRST / TRST options?](How to improve J-Link download speed? - SparkFun Electronics Forum)

Yes, I tried most of the SRST and TRST options - nothing helped.

In the end I “bit the bullet” and went back to using the JLINK GDGserver and after a bit of a struggle (due to a misunderstanding on my part) got it working.

Shame really, I would have prefered to use OpenOCD … but the JLINK support just seems a bit too flaky especially on later versions (v8 in my case) and latest firmware.

Thanks anyway.

I should mention that I am using Linux.

Are you on Linux or Windows?