timothymarknorton wrote:
> We've just started making the move to Philips ARM7 (LPC213x). I have
> a IAR Kickstart kit and starting my first project with the 32K limit
> compiler. We've been toying with the idea of using the GNU compiler.
> However, from what I've found so far, it looks as though none of the
> free tools allow you to program and debug from flash. Is this correct
> or am I missing something?
You need to use hardware breakpoints in order to be able to debug code
in Flash.
The ARM 7 TDMI (other ARM versions also) have 2 HW breakpoints.
Most debuggers use the HW breakpoints for specific purposes (interrupts
& single stepping) and need SW breakpoints for other debugging purposes.
If you have the interrupt vectors in RAM, this may be handled by SW
breakpoints - this frees one HW breakpoint for debugging purposes.
Some debuggers (or even most) will heve the ability to do this.
GDB has the option RDIROMATZERO, if you set this to 0 (set
rdiromatzero=0) you get one HW breakpoint freed for debugging from Flash.
Regards,
RobMessage
Re: [lpc2000] Debugging from flash
2005-10-28 by Rob Jansen
Attachments
- No local attachments were found for this message.