How to check pending interrupts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to check pending interrupts

ソリューションへジャンプ
2,635件の閲覧回数
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 解決策
2,538件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Sylvia_jiang,

That is really application-dependent.

The code you posted clears pending interrupts.

 

BR, Daniel

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
2,627件の閲覧回数
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 件の賞賛
返信
2,616件の閲覧回数
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 件の賞賛
返信
2,604件の閲覧回数
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 件の賞賛
返信
2,600件の閲覧回数
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 件の賞賛
返信
2,597件の閲覧回数
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 件の賞賛
返信
2,545件の閲覧回数
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 件の賞賛
返信
2,539件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Sylvia_jiang,

That is really application-dependent.

The code you posted clears pending interrupts.

 

BR, Daniel

 

 

0 件の賞賛
返信