Example code to set registers in the TMC2208 stepper driver

Try this.
https://learn.watterott.com/silentstepstick/configurator/