S32K11x SM 5.6.6 - NVIC or interrupts?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K11x SM 5.6.6 - NVIC or interrupts?

Jump to solution
520 Views
Catosh
Contributor IV

Hi All, 

I have many questions about assumptions from SM rev. 4. Let's start with NVIC section:

 [SM_100], implementation hint: "A possible way to detect spurious interrupts is to check corresponding interrupt status in the interrupt status register (polling) of the related peripheral before executing the Interrupt Service Routine (ISR) service code"

For me it's not clear if I have to monitor the pending status of the NVIC or of interrupt flags set in the peripheral register. 

If a I am going to poll for the interrupt flags in a peripheral register, I must also keep track of:

global interrupt enable\disable bit status (cpsid/cpsie)

and Interrupt enabled in NVIC (peripheral)

Furthermore, shall I monitor periodically the critical interrupts in polling (e.g while loop and if irq present execute callback) or just poll the irq registers of the peripheral in the callback provided in VTOR before executing some code?

And what's the difference between the implementation hint of [SM_098]?

K.R.

Luca. 

0 Kudos
1 Solution
409 Views
atzelcollazo
NXP Employee
NXP Employee

Hello Catosh,

Both ways should be checked (The NVIC and the peripheral interrupt). The [SM_100] checks interrupt status while [SM_098] is ensure correct NVIC functionality. This means the application should detect an NVIC failure. E.g. no interrupt, continuous interrupt, missed interrupt, delayed interrupt. etc.

Best Regards,

Atzel Collazo

View solution in original post

0 Kudos
1 Reply
410 Views
atzelcollazo
NXP Employee
NXP Employee

Hello Catosh,

Both ways should be checked (The NVIC and the peripheral interrupt). The [SM_100] checks interrupt status while [SM_098] is ensure correct NVIC functionality. This means the application should detect an NVIC failure. E.g. no interrupt, continuous interrupt, missed interrupt, delayed interrupt. etc.

Best Regards,

Atzel Collazo

0 Kudos