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?

cancel
Showing results for 
Search instead for 
Did you mean: 

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?

613 Views
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"

Labels (1)
Tags (1)
0 Kudos
Reply
0 Replies