Can_Init arise hardFault_handler

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

Can_Init arise hardFault_handler

Jump to solution
657 Views
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 Kudos
Reply
1 Solution
644 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @MNN 

Could you share the changes made to code configurations?

 

B.R.

VaneB

View solution in original post

0 Kudos
Reply
3 Replies
645 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @MNN 

Could you share the changes made to code configurations?

 

B.R.

VaneB

0 Kudos
Reply
608 Views
MNN
Contributor II
thank you

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

B.R.
MNN
0 Kudos
Reply
636 Views
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 Kudos
Reply