ARM Technical Support Knowledge Articles

OVERWRITE ABORT HANDLER FUNCTIONS

Applies to: CARM C Compiler

Answer


Information in this article applies to:


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 KEILARMSTARTUP 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

Article last edited on: 2005-07-15 15:44:51

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential