Forum: ARM programming with GCC/GNU tools OpenOCD / Yagarto / Eclipse / GDB / JTAG Problem

von funker211 (Guest)

Rate this post
0 useful
not useful

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.

von Fordp (Guest)

Rate this post
0 useful
not useful
Just a guess, but is there a Watchdog timer enabled ?

von funker211 (Guest)

Rate this post
0 useful
not useful
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.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.