25.08.2015 Views

UM10139

UM10139 Volume 1: LPC214x User Manual - Fab@Home

UM10139 Volume 1: LPC214x User Manual - Fab@Home

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

Philips SemiconductorsVolume 1<strong>UM10139</strong>Chapter 24: RealMonitorReal monitor supplied exception vector handlersRESETUNDEFRM_UNDEF_HANDLER()RM_PREFETCHABORT_HANDLER()RM_DATAABORT_HANDLER()RM_IRQHANDLER()SWIPREFETCHABORTSharing IRQs between ReaMonitor and User IRQ handlerRM_IRQHANDLER2()DATA ABORTAPP_IRQDISPATCHRESERVEDIRQORAPP_IRQHANDLER2()FIQFig 72. Exception handlers24.4.11 RMTarget initializationWhile the processor is in a privileged mode, and IRQs are disabled, user must include aline of code within the start-up sequence of application to call rm_init_entry().24.4.12 Code exampleThe following example shows how to setup stack, VIC, initialize RealMonitor and sharenon vectored interrupts:IMPORT rm_init_entryIMPORT rm_prefetchabort_handlerIMPORT rm_dataabort_handlerIMPORT rm_irqhandler2IMPORT rm_undef_handlerIMPORT User_Entry ;Entry point of user application.CODE32ENTRY;Define exception table. Instruct linker to place code at address 0x0000 0000AREA exception_table, CODELDR pc, Reset_AddressLDR pc, Undefined_AddressLDR pc, SWI_AddressLDR pc, Prefetch_AddressLDR pc, Abort_AddressNOP ; Insert User code valid signature here.© Koninklijke Philips Electronics N.V. 2005. All rights reserved.User manual Rev. 01 — 15 August 2005 324

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

Saved successfully!

Ooh no, something went wrong!