UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
251 of 268
NXP Semiconductors
UM10413
MPT612 User manual
MSR cpsr_c,0x1F
;Re-enable IRQ, go to system mode
;User should insert code here if non vectored Interrupt sharing is
;required. Each non vectored shared irq handler must return to
;the interrupted instruction by using the following code.
;
MSR cpsr_c, #0x52
;Disable irq, move to IRQ mode
;
MSR spsr, r12
;Restore SPSR from r12
;
STMFD sp!, {r0}
;
LDR r0,
=VICBaseAddr
;
STR r1, [r0,#VICVectAddrOffset]
;Acknowledge Non Vectored irq has finished
;
LDMFD sp!, {r12,r14,r0}
;Restore registers
;
SUBS pc, r14, #4
;Return to the interrupted instruction
;user interrupt did not happen so call rm_irqhandler2. This handler
;is not aware of the VIC interrupt priority hardware so trick
;rm_irqhandler2 to return here
STMFD sp!, {ip,pc}
LDR pc,
rm_irqhandler2
;rm_irqhandler2 returns here
MSR cpsr_c, #0x52
;Disable irq, move to IRQ mode
MSR spsr, r12
;Restore SPSR from r12
STMFD sp!, {r0}
LDR r0,
=VICBaseAddr
STR r1, [r0,#VICVectAddrOffset]
;Acknowledge Non Vectored irq has finished
LDMFD sp!, {r12,r14,r0}
;Restore registers
SUBS pc, r14, #4
;Return to the interrupted instruction
END
27.5 RealMonitor
build
options
RealMonitor was built with the following options:
RM_OPT_DATALOGGING=FALSE
This option enables or disables support for any target-to-host packets sent on a
non-RealMonitor (third-party) channel.
RM_OPT_STOPSTART=TRUE
This option enables or disables support for all stop and start debugging features.
RM_OPT_SOFTBREAKPOINT=TRUE
This option enables or disables support for software breakpoints.
RM_OPT_HARDBREAKPOINT=TRUE
Enabled for cores with EmbeddedICE-RT. This device uses ARM-7TDMI-S Rev 4 with
EmbeddedICE-RT.
RM_OPT_HARDWATCHPOINT=TRUE