Rmtarget Initialization; Code Example; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

21.4.11 RMTarget initialization

While the processor is in a privileged mode, and IRQs are disabled, user must include a
line of code within the start-up sequence of application to call rm_init_entry().

21.4.12 Code example

The following example shows how to setup stack, VIC, initialize RealMonitor and share
non vectored interrupts:

User manual

RESET
UNDEF
SWI
PREFETCH
ABORT
DATA ABORT
RESERVED
OR
IRQ
FIQ
Fig 69. Exception handlers
IMPORT rm_init_entry
IMPORT rm_prefetchabort_handler
IMPORT rm_dataabort_handler
IMPORT rm_irqhandler2
IMPORT rm_undef_handler
IMPORT User_Entry ;Entry point of user application.
CODE32
ENTRY
;Define exception table. Instruct linker to place code at address 0x0000 0000
AREA exception_table, CODE
LDR pc, Reset_Address
LDR pc, Undefined_Address
LDR pc, SWI_Address
LDR pc, Prefetch_Address
LDR pc, Abort_Address
Rev. 01 — 12 January 2006
RealMonitor supplied exception vector handlers
sharing IRQs between RealMonitor and user IRQ handler
APP_IRQDISPATCH
UM10161
Chapter 21: RealMonitor
RM_UNDEF_HANDLER()
RM_PREFETCHABORT_HANDLER()
RM_DATAABORT_HANDLER()
RM_IRQHANDLER()
RM_IRQHANDLER2()
APP_IRQHANDLER2()
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
259

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents