I see error frames on the CAN bus whenever my code starts up, before the CAN controller is initialized. What is a common reason for this?

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

I see error frames on the CAN bus whenever my code starts up, before the CAN controller is initialized. What is a common reason for this?

5,031 次查看
lpcware
NXP Employee
NXP Employee

The most common reason is that the CAN_TX pin has been set to logic zero before the CAN controller is initialized and enabled. Even a brief period can cause a burst of error frames.
Set the pin state to logic one before setting the CAN_TX pin to be an output. Alternatively, configure and initialize the CAN controller fully before connecting it to the CAN_TX and CAN_RX pins.

"FAQ contribution from Embedded Systems Academy, experts in CAN bus. For more information visit www.esacademy.com"

标签 (1)
标记 (1)
0 项奖励
回复
0 回复数