andrewmcgr / klipper_tmc_autotune

TMC stepper driver autotuning Klipper python extra
GNU General Public License v3.0
639 stars 142 forks source link

TMC 5160 and switchable VMot #102

Open O-to-the-o opened 11 months ago

O-to-the-o commented 11 months ago

Hello

In my setup I intend to switch the 48V to the TMC5160 drivers on only when needed, so when i boot everything up VMot is 0V. Under these conditions autotune will cause an error and will make klipper go into shutdown

The Error: "Internal error during ready callback: Unable to write tmc spi 'stepper_x' register CHOPCONF"

When I remove the autotune sections from the printer.cfg all works as intended, could it be that klipper doesn't write to those registers until the motors are enabled and autotune alters this behavior ?

Greetings O

andrewmcgr commented 8 months ago

Yes, I believe that is what is happening.