Skip to main content
FCasa.9
Associate
June 14, 2019
Solved

SPC58 - Finding the IRQ number when handling IVOR04

  • June 14, 2019
  • 1 reply
  • 995 views

Hello ST Community,

Does anyone know which register I can read to find which IRQ triggered an IVOR04 exception, on SPC58?

I am using the software vector mode, and the interrupt controller (INTC_IACKR) only gives me the address of the ISR... which is unfortunate when the IRQ is mapped to a generic ISR.

Thanks.

    This topic has been closed for replies.
    Best answer by FCasa.9

    Oops, found it meeself: IRQ number = (INTC_IACKR - Vector Table Base Address ) / 4

    1 reply

    FCasa.9
    FCasa.9AuthorBest answer
    Associate
    June 14, 2019

    Oops, found it meeself: IRQ number = (INTC_IACKR - Vector Table Base Address ) / 4