AnsweredAssumed Answered

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?

Question asked by lpcware Employee on Sep 2, 2016

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"

Outcomes