How to check pending interrupts

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

How to check pending interrupts

Jump to solution
1,526 Views
Sylvia_jiang
Contributor III

Hi Nxp Community,

        I am working on Lpspi+eDMA/PIT/CAN/EEPROM modules on S32K3. It is necessary to check if interrupts are serviced. I don't know Which registers indicate pending interrupts. Is there any solution?

Looking forward to your reply.

 

BR,

Sylvia

Tags (3)
0 Kudos
1 Solution
1,429 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Sylvia_jiang,

That is really application-dependent.

The code you posted clears pending interrupts.

 

BR, Daniel

 

 

View solution in original post

0 Kudos
7 Replies
1,518 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Sylvia,

If there is pending interrupt, the corresponding NVIC_ISPRn and NVIC_ICPRn bit is set.

For more information about NVIC, please refer to ARM®v7-M Architecture Reference Manual.

The S32K3xx NVIC interrupt mapping is specified in the S32K3xx_interrupt_map.xlsx file that is attached to the RM.

 

Regards,

Daniel

 

0 Kudos
1,507 Views
Sylvia_jiang
Contributor III

Hi Daniel

       Thank for your prompt reply. I am studying on S32K3XXRM.pdf, Rev.4, 04/2022 which doesn't provide any detail about S32_NVIC ICPR. Could you send me S32K3xx_interrupt_map.xlsx?

BR,

Sylvia

0 Kudos
1,495 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Sylvia,

Yes, the S32K3xx RM does not provide details about the NVIC.

Refer to the ARMv7-M Architecture Reference Manual

https://developer.arm.com/documentation/ddi0403/latest/

 

The excel file is attached to the RM.

danielmartynek_0-1680248834009.png

 

BR, Daniel

 

0 Kudos
1,491 Views
Sylvia_jiang
Contributor III

Hi Daniel,

            ARMv7-M Architecture Reference Manual.pdf has been downloaded successfully. But attachments are null.

Sylvia_jiang_0-1680252491760.png

 

0 Kudos
1,488 Views
danielmartynek
NXP TechSupport
NXP TechSupport

I'm sorry, the excel is attached to the S32K3xx RM because this is vendor specific unlike the description of the registers that can be found in the ARM documentation.

 

Regards,

Daniel

 

0 Kudos
1,436 Views
Sylvia_jiang
Contributor III

Hi Daniel

            Thank for your sending me map file and I have downloaded it. I try to use IntCtrl_Ip_GetPending api that is defined in IntCtrl_lp.c to check pending interrupts and use IntCtrl_Ip_ClearPending to clear pending interrupts as below. Is it correct action? Is there any matters I need to pay attention to?

Sylvia_jiang_0-1680501544348.png

 

0 Kudos
1,430 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Sylvia_jiang,

That is really application-dependent.

The code you posted clears pending interrupts.

 

BR, Daniel

 

 

0 Kudos