Klipper cannot communicate via URAT to the TMC2209 on a CAN tool board

Error:
Timeout on wait for ‘tmcuart_response’ response

Symptons:
DUMP_TMC returns error.
Stepper_buzz will work for a moment then error out for the same reason.
Everything else works (fan, heater, THs)
Stepper works when TMC section is taken out.

Setup:
Huvud tool board v0.5 running CAN
Problem occurs when I use two SKR 1.3, a voron expander board, and a CAN tool board.
It remains when reduced to one SKR and one CAN tool board.
CAN tool board has been replaced in case of HW issue. Neither CAN tool board works.

Log:
klippy.log (61.6 KB)

What type of CAN adapter do you have connected to the Pi? I see bytes_invalid increases after you run the dump_tmc, so it’s having communication issues between Klippy and the Huvud. I’m not seeing these issues with my Huvud which is connected to a UCCB CAN adapter running patched candlelight firmware. Some devices are running firmware with a bug which causes packets to be re-ordered.

I’m using a mcp2512 pi hat.
Running mailsail os with 5.10 kernel.

I figured out what’s wrong with it.
In waveshare’s docs there’s a line of config:

dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25,spimaxfrequency=1000000

spimaxfrequency needs to be taken out.
1 Like

Thank you, removing spimaxfrequency option fixed it for me. Do you happen to know why removing this helps?