Classical CAN and CAN FD on One Bus: Why a Classic Controller Causes Errors

Key takeaways

  • CAN FD controllers read the FDF bit and handle both Classical CAN and CAN FD frames.
  • A classic controller answers CAN FD frames with error frames, pushing nodes toward error passive and bus off.
  • Repeated error frames can push the CAN FD sender to bus off once its TEC exceeds 255.
CAN Controller title over highway light trails at night
Light trails on a curving highway at night. Image: Techqio

Add one older controller to a CAN FD network and the whole bus can start throwing error frames. Classical CAN and CAN FD can run on the same wires, but only one kind of controller understands both frame formats. The trouble starts when the older one meets traffic it was never built to decode.

Every node on a CAN bus has its own CAN controller. Which kind each node carries decides whether a mixed network runs cleanly or slides toward bus off.

What does a CAN controller do?

A CAN controller keeps its node synchronized with the bus. It monitors the bits on the bus to detect errors, and it takes its own node off the bus when that node keeps causing errors. Controllers come in two kinds, classic controllers built for Classical CAN and FD controllers that also support CAN FD.

CAN node layers: microcontroller, CAN controller for sync, error checks and bus off, CAN transceiver, CAN bus
Four stacked outline layers on a navy grid. Image: Techqio

ISO standardized CAN FD after Classical CAN, so a classic controller cannot handle CAN FD. In 2024, ISO published the third edition of ISO 11898-1, which also integrates CAN XL. FD controllers usually handle Classical CAN frames as well, and CiA confirms that a CAN FD protocol controller also supports Classical CAN frames. The FDF bit makes that possible.

How the FDF bit tells Classical CAN and CAN FD apart

The FDF bit tells the two formats apart while the frame still runs at the arbitration bit rate. CAN FD took one of the formerly reserved bits and named it FDF. A recessive FDF means a CAN FD frame follows, and a dominant one means a Classical CAN frame.

FDF comes before BRS, the bit that tells the controller whether the data phase switches to a faster bit rate. In a Classical CAN frame, the same position is still a reserved bit.

CAN FD frame fields BRS, ESI, DLC, 0 to 64-byte data field and CRC at the optional high bit rate
Blue blocks labeled BRS, ESI, DLC, Data Field and CRC. Image: Techqio

Whatever value it carries, a classic controller’s error detection works as usual. A classic controller has no built-in way to recognize a CAN FD frame, because it never reads that bit as a sign of the CAN FD frame format.

What happens when a classic controller receives a CAN FD frame?

A classic controller monitors the bus bits at its configured sample point. That sample point is set for Classical CAN messages, so a classic controller receiving a CAN FD frame can unexpectedly detect a stuff error. Microchip’s CAN FD documentation states that a controller reading frames as Classical CAN sends an error frame when a CAN FD frame arrives.

Each receive error raises the controller’s receive error counter (REC) by 1. Once REC or TEC exceeds 127, the node enters the error passive state. A passive node can no longer flag errors to the other nodes the usual way, because a passive error frame is sent at the recessive level and isn’t visible on the bus.

Two error states, each with an 8-bit error delimiter, linked by arrows
Error states linked by 8-bit error delimiters. Image: Techqio

The FD controller that sent the frame pays more. Each error frame the classic controller sends back while it is still error active raises the sender’s transmit error counter (TEC) by 8. Past 127 the sender also goes error passive. If error frames keep coming until TEC exceeds 255, the node enters the bus off state.

What happens when an FD controller receives a Classical CAN frame?

In most cases an FD controller handles Classical CAN frames without trouble. It reads the FDF bit, works out whether the frame is Classical CAN or CAN FD, and receives the message at the matching bit rate.

Why one classic controller disrupts the whole bus

A bus with only FD controllers carries Classical CAN messages without problems. Add a classic controller, and it cannot recognize CAN FD frames. It detects stuff errors and sends error frames, which delays communication across the network. Neither the FD controller that sent the frame nor the classic controller that rejected it can stay in the normal error-active state.

Error active at 127 or below, error passive when REC or TEC exceeds 127, bus off when TEC exceeds 255
Three stacked error states with their counter limits. Image: Techqio

Three ways to mix Classical CAN and CAN FD safely

Running Classical CAN and CAN FD on one bus works with one of three fixes.

  1. Use FD-capable controllers for every node on the bus.
  2. Pair each classic controller with an FD Shield transceiver, so CAN FD messages never reach it.
  3. Use partial networking, so the classic node can stay asleep and stop decoding while CAN FD messages are on the bus.
Two CAN FD ECUs on a twisted-pair CAN bus send classic and CAN FD frames; an FD Shield transceiver stops the CAN FD frames and passes classic frames to a classic CAN controller
Bus diagram with two ECUs and a yellow transceiver block. Image: AI-generated with ChatGPT

NXP describes its CAN FD Shield as a way to use classic CAN controllers in mixed CAN and CAN FD networks. With partial networking, the transceiver does the filtering while the node sleeps. NXP’s TJA1145ATK/FD supports ISO 11898-2:2016 partial networking with FD passive behavior toward CAN FD data.

Which fix fits your network?

For a new network, FD controllers on every node are the clean answer. Each one reads FDF, so no node rejects the other format and no transceiver has to filter anything.

The other two fixes keep an existing classic ECU on a bus where CAN FD traffic has arrived. An FD Shield transceiver suits a node that has to keep talking. Partial networking suits a node that can sleep while CAN FD frames pass, and NXP now recommends the TJA1445, a partial networking transceiver with CAN FD passive functionality, over the TJA1145A for new designs.

Sources

Share this article

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *