This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OVERWRITE EXCEPTION HANDLER

Hello,

I use the NXP LPC 2368 and want to write a function to save the exceptions Data Abort Error, Undefined Instruction Error and Pre-fetch Abort Error in a seriel EEPROM and after reset the CPU.
How can I overwrite the dummy exception handler Undef_Handler, PAbt_Handler and DAbt_Handler with C code?
I found the technical support:
http://www.keil.com/support/docs/3027.htm
If I write the irq-functions there is no warning and no error so far so good. But if I test the irq the PC stuck always in the dummy function in startup and not in my own function!
Somebody have a idea?

Parents Reply Children
  • Hello,

    thank you very much for the fast help. After I insert a space before the asm PRESERVE8 everything works fine! I am sorry for my lack of knowledge.
    So I wrote now Exception Handlers for the PAbt, DAbt and Undef Instructions.
    I use the RTX OS so I additinal check for the stack overflow and wrote my own os_stk_overflow function.
    Somebody know further exceptions so I can handle? If no so I thank again very much for the good help.