Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMC5160 FACTORY_CONF register set to 0 during initization #38

Open
kawk opened this issue Sep 26, 2023 · 0 comments
Open

TMC5160 FACTORY_CONF register set to 0 during initization #38

kawk opened this issue Sep 26, 2023 · 0 comments

Comments

@kawk
Copy link

kawk commented Sep 26, 2023

Hi,

After calling

  • 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?

Thanks for comments
Kolja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant