262
Philips Semiconductors
Preliminary User Manual
LPC2119/2129/2292/2294
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:
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.
Table 227: RealMonitor stack requirement
Processor Mode
RealMonitor Stack Usage (Bytes)
Undef
48
Prefetch Abort
16
Data Abort
16
IRQ
8