This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634: Fault interrupt handler

Part Number: AM2634

Tool/software:

Hi,

Is there an example of a generic "catch all" interrupt handler for the am2634 R5F cores? Looking for something similar like the reset handler in M4F, that will catch divisions by 0, bus fault, mpu violations etc.

Thanks!

  • Hi,

    ARM Cortex-R5F cores, which have a different interrupt handling architecture than Cortex-M series processors. The R5F cores typically use:

    1. IRQ (normal interrupts)
    2. FIQ (fast interrupts)
    3. Specific exception vectors for different fault conditions

    So, There is no common "catch-all" handler in R5F Cores.

    We have to setup the following things in application to catch different faults and violations.

    1. Set up the exception vector table
    2. Implement handlers for specific exceptions like:
      • Undefined instruction
      • Prefetch abort
      • Data abort
      • Division by zero (handled through the Undefined Instruction exception when DIVBY0TRP is enabled)

    AM263x SDK typically includes example interrupt handlers and other exception handlers.


    I believe in case of Cortext-M4F case:

    The HardFault Handler is the actual catch-all fault mechanism in M4:

    • It catches runtime faults like division by zero, bus faults, and MPU violations
    • It's automatically triggered when severe errors occur during program execution

     

    Kindly, please do let me know if this helps or your looking for more details or specific scenarios.

    Best Regards, KR