Yahoo Groups archive

Lpc2000

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

Thread

Message 11209

Message 11209

2005-12-08 by nieuw bericht

Hi all,

I'm learning to work with the LPC2148 processor, and have a pcb board for 
this, from embeddedartists.com.

I would like to use the gnuarm toolchain with gdb to program and debug the 
lpc2148 via JTAG. I've read some documents about this, one of the more 
concrete being ARM Cross Development with Eclipse Version 2, by James P. 
Lynch. He states on page 8 that, for debugging with a Wiggler JTAG emulator, 
you are restricted in code size by the size of the RAM in the device, which 
for the LPC2148 is 32kB.

This seems like a bit strong a constraint. Can anyone give his opinion on 
this?

Do the commercial debug solutions from keil etc have the same constraints, 
and if not, is it possible to use a low-cost JTAG emulator (like Amontec's 
debug value pack) with gcc/gcb to program the lpc2000 processors with full 
freedom, to the maximum extent?

Thank you very much for every suggestion !

Wiggler debugging in Flash

2005-12-08 by lynchzilla

Hi nieuw bericht.

The crucial element in wiggler debugging is the Macraigor OCDRemote 
utility that converts GDB serial commands into bit-banging on the 
LPT1 parallel port (the wiggler merely translates voltages to 3.3 
volts). Previous versions of OCDRemote did not support 
the -Z1,addr,length command which specifies a hardware breakpoint 
(ARM7 supports two hardware breakpoints).

The latest version does support the -Z1 command so it is now possible 
to debug in flash, as long as you limit yourself to just two 
breakpoints at a time.

It's been pointed out to me that the new OCDRemote has a command that 
can cause all software breakpoint commands to be converted 
automatically into hardware breakpoints. If you're debugging a RAM-
based application, you can elect not to send this command to 
OCDRemote and thus have as many software breakpoints as you like. If 
you're debugging a FLASH-based application, sending the command will 
allow you two hardware breakpoints. Most people will be satisfied 
with that limitation, since single-stepping, variable inspection, 
etc. all work properly.

I'm working to update my tutorial to illustrate these new features.

Cheers,
Jim Lynch

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.