I try to catch unhandled exceptions in my c source.
Atmel does this in exeption.s assembler module.
first try:
// Register the Busmon interrupt handler to the interrupt controller.
INTC_register_interrupt(&busmon_irq, 0x008, AVR32_INTC_INT0);
did not work!
Does anyone know how to solve this?
/* * EVBA must be aligned with a power of two strictly greater than the * EVBA-relative offset of the last vector. */ .balign 0x200 // Export symbol. .global _evba .type _evba, @function _evba: .org 0x000 // Unrecoverable Exception. _handle_Unrecoverable_Exception: rjmp $ .org 0x004 // TLB Multiple Hit. _handle_TLB_Multiple_Hit: rjmp $ .org 0x008 // Bus Error Data Fetch. _handle_Bus_Error_Data_Fetch: rjmp $ .org 0x00C // Bus Error Instruction Fetch. _handle_Bus_Error_Instruction_Fetch: rjmp $ .org 0x010 // NMI. _handle_NMI: rjmp $ .org 0x014 // Instruction Address. _handle_Instruction_Address: rjmp $