Can_Init arise hardFault_handler

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

Can_Init arise hardFault_handler

跳至解决方案
797 次查看
MNN
Contributor II

hardFault_handler occurred when I was using Can_example_s32k312 of S32K3 RTD AUTOSAR 4.4 2.0.3D2303。

 

I can do this loopback test when I use the example Can_example_s32k312. But I changed the example from FLEXCAN0 to FLEXCAN2, and running Can_Init produces hardFault_handler. Why is this happening? Can you tell me why?

0 项奖励
回复
1 解答
784 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @MNN 

Could you share the changes made to code configurations?

 

B.R.

VaneB

在原帖中查看解决方案

0 项奖励
回复
3 回复数
785 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @MNN 

Could you share the changes made to code configurations?

 

B.R.

VaneB

0 项奖励
回复
748 次查看
MNN
Contributor II
thank you

I have solved the problem because I did not enable the clock for can2.

B.R.
MNN
0 项奖励
回复
776 次查看
MNN
Contributor II

Thank you, VaneB.

Sure am. The following is my modification. Except flexcan0 changed to flexcan2, nothing else was modified. Attached is my project.

MNN_1-1699498568254.png

R.R.

MNN

0 项奖励
回复