> Remember I'm a newbie to this. I didn't digest all > that you said. From what you wrote I gather that I > can use JTAG debugging and have the program run from > flash with a totally free set of tools. I gather that > I must program the code using the Philips flash > utility. Then I would be able to debug. If I need to > use break points, then I need to run part of the code > from flash and have the interrupt vectors in RAM. > This would allow me 1 break point. Did I get this > right? Did you get the complete Kick Start setup with j-link? If not you can use a Wiggler or Wiggler clone to debug with C-Spy. I suggest you use at least a j-link. lpctools.com has a good price on these. The LPC parts have a MEMMAP register. This determines where the interrupt vectors are mapped. When debugging out of RAM the MEMMAP register is set to User RAM Mode. The setup for this is done via a debugger macro file. If the sum of you CODE/DATA and stack allocation exceed the size of the RAM, you have no choice but to debug out of Flash. This is why it is advisable to use the part in your selected series with the most RAM. When you debug with Flash the part is automatically programmed when C-Spy starts. So when using JTAG there is no need for the serial boot loader. The serial boot loader might be handy for field updates. Joel
Message
Re: [lpc2000] Debugging from flash
2005-10-28 by Joel Winarske
Attachments
- No local attachments were found for this message.