Philips Semiconductors
ARM-based Microcontroller
HOW TO ENABLE REALMONITOR
The following steps must be performed to enable RealMonitor. A code example which implements all the steps can be found at
the end of this section.
Adding stacks
User must ensure that stacks are set up within application for each of the processor modes used by RealMonitor. For each mode,
RealMonitor requires a fixed number of words of stack space. User must therefore allow sufficient stack space for both
RealMonitor and application.
RealMonitor has the following stack requirements:
Table 227: RealMonitor stack requirement
Processor Mode
Prefetch Abort
IRQ mode
A stack for this mode is always required. RealMonitor uses two words on entry to its interrupt handler. These are freed before
nested interrupts are enabled.
Undef mode
A stack for this mode is always required. RealMonitor uses 12 words while processing an undefined instruction exception.
SVC mode
RealMonitor makes no use of this stack.
Prefetch Abort mode
RealMonitor uses four words on entry to its Prefetch abort interrupt handler.
Data Abort mode
RealMonitor uses four words on entry to its data abort interrupt handler.
User/System mode
RealMonitor makes no use of this stack.
FIQ mode
RealMonitor makes no use of this stack.
RealMonitor
Undef
Data Abort
IRQ
LPC2119/2129/2292/2294
RealMonitor Stack Usage (Bytes)
262
Preliminary User Manual
48
16
16
8
January 08, 2004