Yahoo Groups archive

Lpc2000

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

Message

Re: Debuging lpc2138 with GNU-arm-gdb

2005-04-17 by soren_t_hansen

--- In lpc2000@yahoogroups.com, "valdef78" <valdef@s...> wrote:
> 
> --- In lpc2000@yahoogroups.com, "soren_t_hansen" <soren_t_hansen@y...> 
> wrote:
> >..
> > not run at all unless I step my way trough. If I try to "go" the
> > program counter (PC) jumps to address 0x7fffd2a2 and keeps looping
> > there forever.
> >..
> > Best Regards
> > Søren Hansen
> 
> 
> that's because you're in the Bootloader.. you had to program MEMMAP to 
> 0x00000002.
> you should have a look at "The Insider's Guide To The Philips ARM7-
> Based Microcontrollers" book (page 51) from Hitex.
> there's a free download here :
> http://www.hitex.co.uk/arm/lpc2000book/

Will this help me getting the Program Counter (PC) to work right? It
seems as if it gets stuck in the bootloader (sometimes around
0x00000240 and sometimes around 0x7fffd2a2) and newer jumps to address
0x40000000 in the RAM where the program is situated when debugging
from Eclipse.

When debugging from uVision (Keil IDE) the program uses a ini file
telling the PC that startup is at 0x40000000. How do I tell this to
GDB when calling it from Eclipse? Is it through the linker file or as
a command line option?

If it at any help, I could upload the linker file.

Best Regards
Søren Hansen

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.