How to check pending interrupts

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to check pending interrupts

跳至解决方案
5,032 次查看
Sylvia_jiang
Contributor IV

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

标记 (3)
0 项奖励
回复
1 解答
4,935 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Sylvia_jiang,

That is really application-dependent.

The code you posted clears pending interrupts.

 

BR, Daniel

 

 

在原帖中查看解决方案

0 项奖励
回复
7 回复数
5,024 次查看
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 项奖励
回复
5,013 次查看
Sylvia_jiang
Contributor IV

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 项奖励
回复
5,001 次查看
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 项奖励
回复
4,997 次查看
Sylvia_jiang
Contributor IV

Hi Daniel,

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

Sylvia_jiang_0-1680252491760.png

 

0 项奖励
回复
4,992 次查看
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 项奖励
回复
4,940 次查看
Sylvia_jiang
Contributor IV

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 项奖励
回复
4,936 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Sylvia_jiang,

That is really application-dependent.

The code you posted clears pending interrupts.

 

BR, Daniel

 

 

0 项奖励
回复