S32K322 When i use ml-universa ,after configuring Flexcan, the program runs to undefined_handler.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K322 When i use ml-universa ,after configuring Flexcan, the program runs to undefined_handler.

2,279 Views
zyc0211
Contributor II

When i use ml-universa ,after configuring Flexcan, the program runs to undefined_handler.

But when I tried Jlink, even though I configured Flexcan, the program wouldn't enter undefined_handler.

And I stepped into debugging and found that the program encountered an error while executing the initialization interrupt service function. IntCtrl_Ip_Init(&IntCtrlConfig_0 --------> 

if (pIntCtrlCtrlConfig->aIrqConfig[irqIdx].bIrqEnabled)
{
IntCtrl_Ip_EnableIrq(pIntCtrlCtrlConfig->aIrqConfig[irqIdx].eIrqNumber);
}
else
{
IntCtrl_Ip_DisableIrq(pIntCtrlCtrlConfig->aIrqConfig[irqIdx].eIrqNumber);
}

Here is my code and interrupt configuration

zyc0211_0-1709689980690.png

 

zyc0211_1-1709689727524.png

 

0 Kudos
Reply
7 Replies

2,237 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @zyc0211,

Could you clarify a bit more about the problem? When using Multilink, the IntCtrl_Ip_Init function does not return an error, but when using Jlink it does? 

Could you confirm this happens with an example from the RTD package as well? 

Best regards,
Julián

0 Kudos
Reply

2,211 Views
zyc0211
Contributor II
NO, whin i using multilink the IntCtrl_Ip_Init function will return an error,but when using Jlink it will not return an error.
0 Kudos
Reply

2,187 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @zyc0211,

Does this issue happen as well with an example? Such as the S32K344 FlexCAN_IP example? 

Best regards,
Julián

0 Kudos
Reply

2,159 Views
zyc0211
Contributor II
@Julián_AragónM
Hi,can u help me? pls
0 Kudos
Reply

2,103 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @zyc0211

Is there any chance you could share your project or the configuration for it? As this issue is not reproduced in our side.

Best regards,
Julián

0 Kudos
Reply

2,178 Views
zyc0211
Contributor II
sorry, i don not have S32K344. But i am sure the error will happen in IntCtrl_Ip_Init this fuction when i use multilink.Can u help me to solve this problem.
0 Kudos
Reply

1,793 Views
anakha
Contributor III

Hi @zyc0211 ,

Did you solve the issue?

I am experiencing same thing when enabling only FlexCAN error IRQ like below

IntCtrl_Ip_EnableIrq(FlexCAN1_0_IRQn)

0 Kudos
Reply