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

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

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

2,282 次查看
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 项奖励
回复
7 回复数

2,240 次查看
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 项奖励
回复

2,214 次查看
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 项奖励
回复

2,190 次查看
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 项奖励
回复

2,162 次查看
zyc0211
Contributor II
@Julián_AragónM
Hi,can u help me? pls
0 项奖励
回复

2,106 次查看
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 项奖励
回复

2,181 次查看
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 项奖励
回复

1,796 次查看
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 项奖励
回复