Skip to main content
FCasa.9
Associate
Jun 14, 2019 3:35 PM UTC
Solved

SPC58 - Finding the IRQ number when handling IVOR04

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.
    FCasa.9
    FCasa.9Best answer
    Associate
    Jun 14, 2019 4:04 PM UTC

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

    1 reply

    FCasa.9
    FCasa.9AuthorBest answer
    Associate
    Jun 14, 2019 4:04 PM UTC

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