Download UM10211
Transcript
UM10211 NXP Semiconductors Chapter 31: LPC2300 RealMonitor – Undef exception caused by the undefined instructions in user foreground application. This indicates an error in the application being debugged. RealMonitor stops the user application until a "Go" packet is received from the host. When one of these exceptions occur that is not handled by user application, the following happens: • RealMonitor enters a loop, polling the DCC. If the DCC read buffer is full, control is passed to rm_ReceiveData() (RealMonitor internal function). If the DCC write buffer is free, control is passed to rm_TransmitData() (RealMonitor internal function). If there is nothing else to do, the function returns to the caller. The ordering of the above comparisons gives reads from the DCC a higher priority than writes to the communications link. • RealMonitor stops the foreground application. Both IRQs and FIQs continue to be serviced if they were enabled by the application at the time the foreground application was stopped. 4. 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. 4.1 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 545. RealMonitor stack requirement Processor Mode RealMonitor Stack Usage (Bytes) Undef 48 Prefetch Abort 16 Data Abort 16 IRQ 8 4.2 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. 4.3 Undef Mode A stack for this mode is always required. RealMonitor uses 12 words while processing an undefined instruction exception. 4.4 SVC Mode RealMonitor makes no use of this stack. UM10211_1 User manual © NXP B.V. 2007. All rights reserved. Rev. 01 — 6 July 2007 577 of 617
Related documents
UM10211 LPC23XX User manual
UM10211 LPC23XX User manual
UM10211 LPC23XX User manual
LPC32x0
UM10316
UM10326
NXP LPC2104, LPC2105, LPC2106 User Manual
Lab 1 - California State University, Northridge
UM10326 LPC32x0 and LPC32x0/01 User manual
NXP LPC2468 User Manual
LPC2114/2124/2212/2214 USER MANUAL
You cannot Flash but only read this