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?
Solved! Go to Solution.
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.
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.
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.
-------------------------------------------------------------------------------
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.
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.
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.
-------------------------------------------------------------------------------