Setting interrupt priority using S32K1 RTD

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

Setting interrupt priority using S32K1 RTD

跳至解决方案
1,789 次查看
hns80
Contributor V

While investigating an interrupt priority issue on the S32K1, I discovered none of the RTD examples ever set the interrupt priority.

Shouldn't the interrupt priority be set with the following?

IntCtrl_Ip_Init(&IntCtrlConfig_0);

Also, the S32K1 examples all set the handler by calling IntCtrl_Ip_InstallHandler() directly instead of using the peripheral configuration tool along with 

IntCtrl_Ip_ConfigIrqRouting(&intRouteConfig);

Since the example code is supposed to show users how to use the RTDs, shouldn't they be using these two functions?

 

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,765 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hns80,

The reason for not setting the priority in the RTD example may be the same as the SDK: The interrupt priority scheme is entirely determined by the specific application logic and its setting is handled by the user application. The user application manages the interrupt priorities.

Interrupt Manager SDK.png

Yes. I agree with you. I have mentioned these two APIs in: GPIO interrupt example project using S32K1xx RTD without AUTOSAR SIUL2 external interrupt example project using S32K3 RTD without AUTOSAR

In AN13767, S32CT(peripheral configuration tool) and IntCtrl_Ip_Init, IntCtrl_Ip_ConfigIrqRouting are used to configure multiple interrupts too.

AN13767 IntCtrl_Ip_Init IntCtrl_Ip_ConfigIrqRouting.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,766 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hns80,

The reason for not setting the priority in the RTD example may be the same as the SDK: The interrupt priority scheme is entirely determined by the specific application logic and its setting is handled by the user application. The user application manages the interrupt priorities.

Interrupt Manager SDK.png

Yes. I agree with you. I have mentioned these two APIs in: GPIO interrupt example project using S32K1xx RTD without AUTOSAR SIUL2 external interrupt example project using S32K3 RTD without AUTOSAR

In AN13767, S32CT(peripheral configuration tool) and IntCtrl_Ip_Init, IntCtrl_Ip_ConfigIrqRouting are used to configure multiple interrupts too.

AN13767 IntCtrl_Ip_Init IntCtrl_Ip_ConfigIrqRouting.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复