OpenOCD / Yagarto / Eclipse / GDB / JTAG Problem

Guest #1172136
Hi,

I use a full Yagarto Toolchain (OpenOCD, arm-elf-gcc, arm-elf-gdb,
Eclipse) in conjunction with the Amontec JTAGKey (JTAG device). I want
to debug code on an Olimex LPC-P2129 Evaluation Board.

Things work fine as long as I don't try to step over blocks of code and
as long as I keep my debug sessions short. However, whenever I try to
step over large blocks of code (like a long while-loop) or whenever I
let the target run for long sections of code, the whole thing hangs up,
that is, OpenOCD quits with an error message, JTAGKey hangs up
completely and must be restarted by unplugging from USB and arm-elf-gdb
also crashes.

Has anyone any idea what might go wrong?

I use a standard configuration file for OpenOCD and a standard GDB
configuration script at startup. JTAG Speed is 2 (6 MHz / (2 + 1) = 2
MHz. Clock Speed is 14,745,600 Hz.
Guest #1172138
Fordp wrote:
> Just a guess, but is there a Watchdog timer enabled ?

Nope. It's fine to just pause between each single step as long as you
like, the problem only occurs when executing a code block.

Reply

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.