Klipper CAN bus setup for EBB36, SHT36 and SB2040 toolhead boards, and how to stop the timeouts

By Sina Esfahani, OmniTechs · Published 27 November 2026

A CAN toolhead board puts a small Klipper microcontroller on the print head and connects it to the rest of the printer with four wires: power (12 to 24 V on the EBB36), ground, CAN high (CANH) and CAN low (CANL). The host, usually a Raspberry Pi, reaches the bus through a USB-to-CAN adapter such as BIGTREETECH's U2C, through a mainboard running Klipper's USB-to-CAN bridge mode, or through a CAN HAT. Every board on the bus has its own canbus_uuid, which goes into printer.cfg.

Almost every CAN problem comes from a short list: missing or extra terminating resistors, different bitrates on the host and the boards, a Linux transmit queue left at its default of 10, a loose crimp in the cable to the head, or old software that reorders messages.

Set it up in this order:

  1. Switch the printer off, unplug it and let the hotend cool, then wire power, GND, CANH and CANL by the silkscreen, with CANH and CANL twisted together; reversed power burns the board (BIGTREETECH).

  2. Fit exactly two 120 Ω terminating resistors, one at each end of the bus; with the power off, CANH to CANL should read about 60 Ω.

  3. Use one bitrate everywhere: Klipper recommends 1000000.

  4. On the host, create /etc/network/interfaces.d/can0 with bitrate 1000000 and txqueuelen 128; ip link show can0 must report qlen 128.

  5. Flash Klipper on the board for CAN on its own pins, for example CAN bus (on PB0/PB1) on an EBB36 V1.1 or V1.2; on a V1.1, unplug the 12 to 24 V supply first, because DFU mode switches the heater on.

  6. Run canbus_query.py once, and paste the canbus_uuid it prints into an [mcu] section.

  7. Timeouts? Check bytes_invalid in klippy.log, then update to Linux kernel 6.6, candleLight 2.0 and Klipper 0.12.0 or later.

CAN or USB to the toolhead?

Choosing the connection to the print head

From Klipper's CAN bus documentation, BIGTREETECH's EBB README and manual, and a Klipper forum thread on using CAN boards over USB, read 27 November 2026.
ChooseWhenKeep in mind
CANYou want four wires to the head, or several boards on one busNeeds exactly two terminators, a can0 interface and the same bitrate on every node
USB to the toolhead boardYou have one toolhead board and want the simplest setupEBB36 and EBB42 boards also run Klipper over USB; the board still needs 12 to 24 V power
The existing wiring loomThe printer works and you are not adding electronics to the headNothing to configure

Klipper adds one rule of its own: bridge mode is only valid on a working CAN bus with at least one other node. If you only want to talk to one USB device, use a normal USB setup instead.

Three ways to connect the host to the bus

  • A USB-to-CAN adapter such as the BIGTREETECH U2C or Mellow's UTOC. Klipper recommends an adapter whose firmware can be updated, running either Klipper's bridge mode or the candleLight firmware; the U2C runs candleLight. Mellow's UTOC has its 120 Ω resistor permanently switched on.

  • A mainboard in USB-to-CAN bridge mode. You choose "USB to CAN bus bridge" in Klipper's make menuconfig, and the mainboard becomes both adapter and Klipper node. It then no longer appears under /dev/serial/by-id; you configure it with a canbus_uuid like every other node. In this mode Klipper ignores the bitrate set in Linux and uses the one compiled into the firmware, which it recommends setting to 1000000.

  • A CAN HAT on the Raspberry Pi, such as BIGTREETECH's RPI-CAN HAT, enabled with an overlay line in config.txt as its board manual shows. Current Raspberry Pi OS keeps that file at /boot/firmware/config.txt, so a guide that says /boot/config.txt is older (Raspberry Pi).

Wiring and termination

Switch the printer off and unplug it before any wiring. BIGTREETECH's board manual says never to work on a board with power applied and to double-check jumpers and wiring before you switch on. Its EBB36 manual warns that a reversed power lead, or power on a CAN wire, burns the board, and Mellow states that its SHT36 and SHT42 have no reverse-polarity protection.

Twist the signal pair. Klipper asks for CANH and CANL twisted around each other, at least one twist every few centimetres, and not twisted around the power wires; Mellow suggests one twist every 24 mm. Klipper also notes that a bad crimp or a loose plug in the moving cable causes errors that come and go as the head moves.

Terminate both ends. A CAN bus needs two 120 Ω resistors, ideally one at each end, and only two (Klipper). Most boards have a jumper for it:

  • BIGTREETECH EBB36 and U2C: a jumper on the 120R position when the board is at the end of the bus.

  • Mellow SHT36: two jumpers; Fly SB2040 V2: one jumper; Mellow UTOC: always on.

In Greg's Maker Corner's video, the CAN toolhead of a Voron 0.2 is wired up, with a comparison of Mellow's SHT36 V2 and the EBB36.

Voron 0.2 Build Series - CAN Bus Toolhead Wiring (Greg's Maker Corner)

Worked example: reading the multimeter

Two 120 Ω resistors in parallel make 120 × 120 ÷ (120 + 120) = 60 Ω, which is the reading Klipper and Mellow give for a correct bus. Measure between CANH and CANL with everything connected and the power off. A reading of about 120 Ω means only one terminator is fitted: set the jumper on the board at the other end. About 40 Ω means three (120 ÷ 3): remove the jumper from a board in the middle of the bus.

Set up the can0 interface on the host

Klipper's documentation creates a file called /etc/network/interfaces.d/can0 with four lines:

  • allow-hotplug can0

  • iface can0 can static

  • bitrate 1000000

  • up ip link set $IFACE txqueuelen 128

Linux queues only 10 CAN packets by default. When that queue overflows, the Klipper log shows "Got error -1 in can write: (105)No buffer space available"; Klipper resends the message, so on its own it is a warning. Check the setting with ip link show can0, which should report qlen 128.

The makers do not agree on the numbers, so this is the table to check if you follow a board manual.

Bitrate and transmit queue: who recommends what

As published by Klipper, BIGTREETECH and Mellow, read 27 November 2026. Every node and the host interface must use the same bitrate.
SourceBitratetxqueuelen
Klipper documentation1000000 (recommended in bridge mode)128; not significantly larger
BIGTREETECH EBB36 V1.1 manual, 2024 revision1000000 (raised from 250000)1024
BIGTREETECH U2C V1.0/V1.1 manual5000001024
Mellow SHT36 troubleshooting page500000 in its examples, "the bitrate your device firmware is compiled for"Not given

Follow Klipper on the queue length: it explains that a queue much longer than 128 can delay messages enough to cause errors that Klipper cannot recover from. The bitrate itself matters less than using the same one everywhere; 1000000 suits Klipper's advice and BIGTREETECH's current manual.

Flash the board, with or without Katapult

For an EBB36 or EBB42 V1.1 or V1.2, BIGTREETECH's settings in Klipper's make menuconfig are: STMicroelectronics STM32, processor STM32G0B1, an 8 MHz crystal, Communication interface CAN bus (on PB0/PB1) and CAN bus speed 1000000. The bootloader offset is 8KiB bootloader if you use Katapult and No bootloader if you do not. The first flash usually goes over USB in DFU mode, using the board's BOOT and RESET buttons.

Warning for the EBB36 and EBB42 V1.1: DFU mode heats the hotend. On these boards the hotend output switches on as soon as the board enters DFU mode. BIGTREETECH tells you to disconnect the main power input (VIN) before you flash over USB-C, or to finish quickly, and never to leave the board in DFU mode with the power and hotend connected. On the V1.2 the heater moved to another pin.

Katapult (formerly CanBoot) is a bootloader that lets you update Klipper over the CAN bus afterwards, without a USB cable to the head. Stop the Klipper service first, build Klipper with the matching bootloader offset, then run python3 ~/katapult/scripts/flashtool.py -i can0 -f ~/klipper/out/klipper.bin -u followed by the board's UUID. On a board that has never run Klipper, flashtool.py -i can0 -q queries the bootloader for its UUID; Katapult warns to do that only with a single node on the bus, because querying several can knock one into a "bus off" state until it is reset. A mainboard in bridge mode is updated differently: flashtool.py -r requests the bootloader, then you flash it over USB.

Find the canbus_uuid, and why it disappears

With the hardware powered and wired, run:

  • ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0

It prints lines such as "Found canbus_uuid=11aa22bb33cc, Application: Klipper". Put the value in printer.cfg, under a name of your choice; BIGTREETECH's sample configuration calls the board EBBCan:

  • [mcu EBBCan]

  • canbus_uuid: 11aa22bb33cc

The most common "lost UUID" is not lost at all. The tool lists only boards that nothing has claimed yet, so once Klipper connects to a board, it no longer shows up; BIGTREETECH calls that normal. Klipper adds that the tool is not a ping, should be used only for boards never seen before, and must not run during a print. If you really need to see a configured board again, stop the Klipper service and reset the board, as a Klipper forum answer suggests.

If a new board never shows up, check power, termination and the bitrate first, then the firmware build: the wrong CAN pins, USB instead of CAN as the interface, or a bootloader offset that does not match how the board was flashed.

Teaching Tech's guide to the U2C and EBB boards covers the cable, the candleLight firmware, the bootloader, Klipper firmware and configuration, and has a chapter on Communication timeout troubleshooting. It dates from 2022, so check the bitrate against the table above.

Klipper CAN bus guide for Bigtreetech U2C and EBB boards (Teaching Tech)

Communication timeout and other CAN errors

CAN messages and what to do

From Klipper's CAN bus, CAN bus troubleshooting and multi-MCU homing documentation, read 27 November 2026.
What you seeWhat it meansWhat to do
"Communication timeout during homing", often when the probe sits on the toolhead boardMulti-MCU homing needs a round trip that stays under about 10 ms; Klipper allows 25 msFix the latency: txqueuelen 128, wiring and crimps, then software versions; slower homing reduces overshoot
The bytes_invalid counter of a CAN node keeps rising in the Stats lines of klippy.logMessages arrive out of order: a software fault, not wiringLinux kernel 6.6 or later, candleLight 2.0 or later, a bridge node on Klipper 0.12.0 or later
"No buffer space available" now and thenThe transmit queue was full and Klipper resent the messageSet txqueuelen 128
"No buffer space available" all the timeNothing gets through: often a broken wireCheck the cable and connectors with the power off
Errors only while the head movesA crimp or plug loses contactRe-crimp and secure the connectors
canbus_query.py prints nothingBoard not powered, not terminated, wrong bitrate or wrong firmware buildWork through the UUID section above

The homing case has a clear mechanism. When the probe is on one microcontroller and the Z motors on another, the two must keep confirming to each other within 25 ms, and any delay lets the motors overshoot. Klipper's example: homing at 10 mm/s, a 25 ms delay allows up to 10 × 0.025 = 0.25 mm of overshoot, which Klipper corrects for but which your hardware must tolerate. Some forum posts raise this 25 ms limit in Klipper's source code; that allows more overshoot and leaves the delay in place.

When to stop and ask for help

  • Something gets hot or smells after wiring. Switch off and unplug at once; check polarity before powering again. A board that was powered with reversed or misrouted supply voltage may be damaged.

  • Errors continue with correct wiring and current software. Capture the traffic with candump -tz -Ddex can0,#FFFFFFFF > mycanlog (from the can-utils package) and post it on the Klipper forum together with the full klippy.log; replies there make clear that nobody can judge the cause without the log.

USB connection errors between the host and a board, such as "Unable to connect", are covered in Klipper MCU unable to connect. If Klipper is not installed yet, start with installing Klipper on your printer, and read what Klipper changes if you are still deciding. A toolhead board can also carry a bed probe; the BTT Eddy Coil, for example, plugs into a toolhead board's I2C port. Bed probe types compared explains the choice.