yet another tool chain lpc-newlib question.

Started by mark gross January 29, 2008
I'm back yet again tyring to bring up the lpc-newlib / gnuarm tool chain
for the 21xx.

I'm still having challanges with getting the lpc-newlib sample programs
to execute the printf commands when using the gcc4.2 compiler or the
newlib-1.15.0 lib in the hello world printf test programs in the
lpc-newlib 5a.

See http://tech.groups.yahoo.com/group/lpc2000/message/25159 for some
history.

I'm wondering how I could debug this.

How does one use the JTAG to debug a flash based program? All the JTAG
configurations seem to be for loading and running programs out of ram.

Thanks for any pointers.

--mgross

An Engineer's Guide to the LPC2100 Series

mark gross wrote:
>
> I'm back yet again tyring to bring up the lpc-newlib / gnuarm tool chain
> for the 21xx.
>
> I'm still having challanges with getting the lpc-newlib sample programs
> to execute the printf commands when using the gcc4.2 compiler or the
> newlib-1.15. 0 lib in the hello world printf test programs in the
> lpc-newlib 5a.
>
> See http://tech. groups.yahoo. com/group/ lpc2000/message/ 25159
> for some
> history.
>
> I'm wondering how I could debug this.
>
> How does one use the JTAG to debug a flash based program? All the JTAG
> configurations seem to be for loading and running programs out of ram.
>

The only differences between debugging in Flash vs. debugging in RAM is
the JTAG breakpoint mode (other than the location of the code). One is
a HARD breakpoint, the other can be SOFT. You cannot put a soft
breakpoint into Flash, you have to use the hard breakpoint setting of
the JTAG. Just how you achieve that setting depends upon the debugger
you are using to drive the JTAG with. A software debugger will have
some config file setting for this, a hardware unit (such as my BDI-2000)
also use config settings for this.

Other than that, if you can debug from RAM, then debugging from Flash is
merely location of the code.

TomW
--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------