tmc5160_init(..., tmc5160_defaultRegisterResetState) and
tmc5160_reset(), I realized when
tmc5160_periodicJob() runs next,
FACTORY_CONF register is set to 0, effectively slowing down the internal oscillator of my TMC5160-BOB.
I can workaround this by reading the nominal value from OTP_READ register and putting it manually into the array with reset values, but actually expected the TMC code to not mess with the FACTORY_CONF "by default". Or maybe I'm not expected to call tmc5160_reset() at that stage?
Hi,
After calling
tmc5160_init(..., tmc5160_defaultRegisterResetState)
andtmc5160_reset()
, I realized whentmc5160_periodicJob()
runs next,FACTORY_CONF
register is set to0
, effectively slowing down the internal oscillator of my TMC5160-BOB.I can workaround this by reading the nominal value from OTP_READ register and putting it manually into the array with reset values, but actually expected the TMC code to not mess with the FACTORY_CONF "by default". Or maybe I'm not expected to call tmc5160_reset() at that stage?
Thanks for comments Kolja