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
解決済! 解決策の投稿を見る。
Hello @Sylvia_jiang,
That is really application-dependent.
The code you posted clears pending interrupts.
BR, Daniel
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
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
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.
BR, Daniel
Hi Daniel,
ARMv7-M Architecture Reference Manual.pdf has been downloaded successfully. But attachments are null.
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?
Hello @Sylvia_jiang,
That is really application-dependent.
The code you posted clears pending interrupts.
BR, Daniel