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

ARM926 Interrupt exception

Note: This was originally posted on 27th August 2009 at http://forums.arm.com

Hi,

I would like to program an interrupt handler for ARM926ej.

According to reference, when CPU is interrupted, it jumps to address 0xFFFF0018 (interrupt vector).

Then, I suppose I have to program a jump instruction to my handler in that address. But I don't know how.

I'm using GNU toolchain.

Thank you very much
Ricardo
Parents
  • Note: This was originally posted on 11th September 2009 at http://forums.arm.com

    What I'd suggest is placing a hardware breakpoint on the undef vector.  When it hits, use lr_udef and SPSR_undef to find where the undef occurred, that should be sufficient clue as to what went wrong.

    My guess would be is that it you are taking the IRQ, but something went wrong with your copy and you have a corrupted instruction.
Reply
  • Note: This was originally posted on 11th September 2009 at http://forums.arm.com

    What I'd suggest is placing a hardware breakpoint on the undef vector.  When it hits, use lr_udef and SPSR_undef to find where the undef occurred, that should be sufficient clue as to what went wrong.

    My guess would be is that it you are taking the IRQ, but something went wrong with your copy and you have a corrupted instruction.
Children
No data