Setting TMC driver registers that are not in config

Hi,
there’s a list of fields/register of the TMC driver i can set in the config file
but not all of them are there.
is there there a way to set a register that is not on the config file ?

See G-Codes - Klipper documentation

Note that you will have to calculate valid values yourself. This is a very low level option and absolutely not recommended unless you know exactly what you are doing AND how these fields inter-depend on each other AND how Klipper actually controls the TMCs.

In addition it is very likely that such “optimization” will rather lead to unwanted / hard to diagnose effects unless you follow up with oscilloscope measurements or other verification and validation methods.
The defaults try to be sane values that work over a large scope of:

  • Stepper characteristics
  • Acceleration and Velocity profiles → many of such values can be optimized for certain acceleration / velocities but a 3D printing process is a wild mixture depending on the feature that is currently being printed
  • Load / weight of your axes
  • you name it

Hi thanks a lot,
so according to documentation in link i just enter the field or register according to datasheet
and klipper will recognize it, if i understand right and i can address any of them i want?

also i found a file “klippy>extras>tmc5160.py”
i can see all the reg there with addresses so i guess they are defined and addressable.

thanks for the warning… yeah i am filmier with the all datasheet of the 5160
but not with how klipper utilize them.

basically klipper gives most of what i need, the ones i additionally wants to set are:
MSLUT
MSLUTSEL
MSLUTSTART
to fine tune the ustep table for better precision.

maybe also if needed:
GCONF
SHORT_CONF
DRV_CONF
those can make the hard to diagnose effect will be carful if changing them

Not quite so straight forward for these values. You might want to refer to TMC5160 - Classic Constant Off Time Chopper with fast decay time

ok thanks again.
will try the GCODE first if that won’t do ill check the python way