hello,
im having some trouble debugging a fault.
when the tmc5160 is connected to spi and registers are setup for a nema23 size motor given 20 volts and 4 amp max .
when sent a target position the driver disables , it trys to move one step and just disable's . at times it accels to a speed but on deccel disables and at times after not being sent a target positon again auto disables.
the spi connection is not lost as i can still read registers but the motor does not move and is disabled thereafter.
i can get it to work at a much lower current and drvStrengh settings but im not pulling all the amps it can handle and am confused as to why the board is disableling.
im using this code library https://github.com/tommag/TMC5160_Arduino
i have set registers up at boot as such, with such settings the driver enables, attempts to move and disables almost immediately.
as another example if i set drvstrengh to 2 and globalscaler to a lower value the motor moves and works without disabling.
i am printing drvStatus but i get no error's during the moment it disables to suggest a problem.
any help to understand why the motor is disabling would be great.