Technical Support

CARM: OVERWRITE ABORT HANDLER FUNCTIONS


Information in this article applies to:

  • CARM Version 2.0 or higher

QUESTION

I know how to override the default handler functions for FIQ and IRQ by appending __fiq and __irq to the C function.

Is there a similar method that allows me to override the PAbt_Handler and DAbt_Handler default handler functions with C code?

ANSWER

Yes. You can easily overwrite the default interrupt handler functions. Take a look at the \KEIL\ARM\STARTUP\ folder. It contains the assembler source files for all default handlers.

If you must overwrite an abort handler with C code, use the same function name. For example, to overwrite the PAbt_Handler with a C function, use the following C source code:

void PAbt_Handler (void)  __irq  {
  while (1);
}

MORE INFORMATION

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure