Duet 1LC Toolboard Compatibility

Basic Information:

Printer Model: Custom
MCU / Printerboard: Duet 3 Mini 5+ and Duet 1LC Toolboard
Host / SBC: RPi 4 8GB
klippy.log: Not Applicable

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

Hello! I’m in the process of converting a custom Duet-based build from RRF to Klipper, and am having some difficulties understanding how to implement the toolboards. (There are currently two 1LC boards, with plans to add more.)

While these toolboards are mentioned in the documentation, I have yet to find anything resembling a guide, reference example, or even pin mappings.

My understanding is that I will need to purchase a USB to CAN adapter, and connect it directly to the Pi. I’ve been looking at the CANable v2.0 Pro. The tool distribution board is currently wired into the Mini 5+ itself, and I was hoping I would be able to use the existing hardware, but I’m starting to get the sense that that would be monumentally more difficult.

But again, I can’t find any concrete examples of people actually getting these boards working with Klipper, despite plenty of posts that indicate it’s possible. (Like this one or this one.)

Normally, I’d just go for it and only come here if I run into problems, but because I would need to purchase new hardware and flash the boards with no clear way of going back, I want to make sure that it’s possible first, especially since there is NO publicly available documentation that I have been able to find regarding what to do after getting the board flashed and connected. Downtime is at a premium, unfortunately.

To add further confusion, the CAN bus documentation claims that only the stm32, SAME5x series, and rp2040 chips are compatible, making no mention of the SAMDC21.

If this is a lost cause, and I need to replace these toolboards with compatible alternatives, I would love it if anyone has any suggestions.

Thank you for any help that you can provide in this matter.

See Here:

Both configuration files include pin mapings.

While I have zero personal expirence with Duet boards, I’m 95% sure that klipper firmware running on a Duet 3 Mini 5+ will expose the CAN transceiver to Linux as a USB to CAN converter exactly like BTT Manta boards work. YMMV

That looks perfect, thanks! I have no idea how I wasn’t able to find those config files myself.

I do notice that the config example doesn’t implement the accelerometers, but that’s very much a later problem.

Update: This is what I get from lsusb. Nothing that looks like a CAN adapter. Should I just assume I need to buy one?

gigabot-pi@gigabot-pi:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1d50:614e OpenMoko, Inc. same54p20a
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

EDIT: Nvm, I just needed to flash the Mini 5+ with, “USB to CAN bus bridge,” instead of, “USB,” and update the config to interact with the board via CAN instead of ttyACM0. Everything’s working now except the 1LC itself. Still need to flash that using OpenOCD, and then I guess it should work.

Yup, it does indeed support CAN in bridge mode and it works perfectly, see: Add support for CANbus on atsame51 chips