The TMC2130 offers two DIAG output (DIAG0 and DIAG1). You can set those two Outputs to signal errors in realtime to the microcontroller.On the stepstick, you can access them via the pins/holes on the middle of the drivers:Today I tested some of the DIAG settings, especially the one for stallguard2. The Diag-Ouputs are interesting because it is easy to make the Ultimaker stop or pause or whatsoever if an external signal (e.g. the DIAG1 signal) comes HIGH/LOW.That means, using the Diag-outputs, the Ultimaker is able to stop/pause if the driver overheats, the extruder loses steps, the printhead crashes agains the frame, ...[quote]
The TMC2130 offers two DIAG output (DIAG0 and DIAG1). You can set those two Outputs to signal errors in realtime to the microcontroller.
In theory this is surely possible. You need a software spi implementation for each driver and override the step/unstep/direction/enable function with the appropriate code.Main problems I see:1. Setting steps with SPI is much slower. Instead of toggling one bit you have to send 8-16 bit with software spi. So it will be 1/30 or slower of normal speed. So that is not a real option for driving the steps.2. I'm not familiar with this chipset but I tried writing load detection with TI chips and failed miserably. This requires quite some conditions to work and the right timing and speed. And you would need a very fast fault implementation which only is possible using the external fault pin for which boards have no connection. Without you would again need to query with spi which is too slow.And if you get fault detection working the next problem is to rewrite the code for this. As it was not possible before, there is no handling to do it.The only advantage I might see is, if it is possible to set some parameter like current/microstepping in spi mode and then switch back to pin mode. Not sure though if that is possible here or if it is overridden by external ms-pins and poti.