Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] GDB

2004-05-28 by Michael Anburaj

Hi Massimo,

--- Micron Engineering <micronpn@...> wrote:
> I have a simple question: is it possible debug a
> program running from
> flash with gdb and a jtag interface?

Yes.

> If yes, please
> tell me the
> configuration and/or where I may download gdb and/or
> the gdb stub.

You can download the arm-elf binaries from
http://www.ariusdsp.com/~gnuarm/files.html

or any other source.

Invoke insight (arm-elf-gdb should invoke insight
debugger or \ufffdarm-elf-gdb \ufffdw\ufffd):
$ arm-elf-insight Your_image.elf

Choose ARM/ethernet target & give the IP of the JTAG
OCD box. You can do a connect & set break point at the
target debug location & reset the board, it should run
& break at the location if it ever hits.

[ FYI: you cannot exceed more than 2 break points when
debugging flash area, since the debugger can only make
use of the hardware breakpoints ]

You don't need GDB stubs on your target hardware for
debugging through JTAG interface. I guess the target
option ARM/ethernet talks to the JTAG interface using
Angel debug protocol. I used JEENI & it worked fine
for me (except when it encountered a \ufffdbx\ufffd, stepi or
nexti acts like continue).

Cheers,
-Mike.



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.