S32K344 HardFault

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

S32K344 HardFault

跳至解决方案
1,408 次查看
KILLERzheng
Contributor IV

Hi, NXP

I configured a project in EB tresos, but when I try to initialize the CAN module, it occurs the hardfault.

I doubt it that there are faults in MCU clock configuration, but I could not find out the way to deal with it.

Could you please help me?

KILLERzheng_2-1639736608432.png

 

KILLERzheng_1-1639736575351.png

 

标记 (3)
0 项奖励
1 解答
1,374 次查看
KILLERzheng
Contributor IV

I found the reason of the HardFault, just because the CAN clock has not been enable in the mcumodesetconf of MCU module

在原帖中查看解决方案

0 项奖励
2 回复数
1,375 次查看
KILLERzheng
Contributor IV

I found the reason of the HardFault, just because the CAN clock has not been enable in the mcumodesetconf of MCU module

0 项奖励
1,361 次查看
namnguyenviet
NXP Employee
NXP Employee

Glad to hear that you can find the root cause. It's indeed that you need to enable the Clock in MC_ME partition before starting using the CAN peripheral.

Best Regards,

Nam

0 项奖励