15.11.2012 Views

LPC2131/2132/2138 User Manual - mct.net

LPC2131/2132/2138 User Manual - mct.net

LPC2131/2132/2138 User Manual - mct.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Philips Semiconductors Preliminary <strong>User</strong> <strong>Manual</strong><br />

ARM-based Microcontroller<br />

23. REALMONITOR<br />

<strong>LPC2131</strong>/<strong>2132</strong>/<strong>2138</strong><br />

RealMonitor is a configurable software module which enables real time debug. RealMonitor is developed by ARM Inc. Information<br />

presented in this chapter is taken from the ARM document RealMonitor Target Integration Guide (ARM DUI 0142A). It applies to<br />

a specific configuration of RealMonitor software programmed in the on-chip ROM boot memory of this device.<br />

Refer to the white paper "Real Time Debug for System-on-Chip" available at http://www.arm.com/support/<br />

White_Papers?OpenDocument for background information.<br />

FEATURES<br />

Allows user to establish a debug session to a currently running system without halting or resetting the system.<br />

Allows user time-critical interrupt code to continue executing while other user application code is being debugged.<br />

APPLICATIONS<br />

Real time debugging.<br />

DESCRIPTION<br />

RealMonitor is a lightweight debug monitor that allows interrupts to be serviced while user debug their foreground application. It<br />

communicates with the host using the DCC (Debug Communications Channel), which is present in the EmbeddedICE logic.<br />

RealMonitor provides advantages over the traditional methods for debugging applications in ARM systems. The traditional<br />

methods include:<br />

Angel (a target-based debug monitor).<br />

Multi-ICE or other JTAG unit and EmbeddedICE logic (a hardware-based debug solution).<br />

Although both of these methods provide robust debugging environments, neither is suitable as a lightweight real-time monitor.<br />

Angel is designed to load and debug independent applications that can run in a variety of modes, and communicate with the<br />

debug host using a variety of connections (such as a serial port or ether<strong>net</strong>). Angel is required to save and restore full processor<br />

context, and the occurrence of interrupts can be delayed as a result. Angel, as a fully functional target-based debugger, is<br />

therefore too heavyweight to perform as a real-time monitor.<br />

Multi-ICE is a hardware debug solution that operates using the EmbeddedICE unit that is built into most ARM processors. To<br />

perform debug tasks such as accessing memory or the processor registers, Multi-ICE must place the core into a debug state.<br />

While the processor is in this state, which can be millions of cycles, normal program execution is suspended, and interrupts<br />

cannot be serviced.<br />

RealMonitor combines features and mechanisms from both Angel and Multi-ICE to provide the services and functions that are<br />

required. In particular, it contains both the Multi-ICE communication mechanisms (the DCC using JTAG), and Angel-like support<br />

for processor context saving and restoring. RealMonitor is pre-programmed in the on-chip ROM memory (boot sector). When<br />

enabled It allows user to observe and debug while parts of application continue to run. Refer to section How to Enable<br />

RealMonitor for details.<br />

RealMonitor 253 November 22, 2004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!