mbuc

M122 - TMC Debugging

1.1.7 debug Get TMC Debug Info HAS_TRINAMIC_CONFIG

Description

Do a communication check for configured TMC drivers. Trinamic drivers that support this feature are TMC2130, TMC2160, TMC2208, TMC2209, TMC2660, TMC5130, and TMC5160.

  • With no parameters, this command returns the current settings for all installed and supported Trinamic stepper drivers.
  • Send M122 I to re-initialize drivers after a late power-on. Use S[0|1] to enable/disable continuous debugging output.

Notes

TMC_DEBUG is no longer needed in Marlin 2.0.x, but enabling it produces an extended report.

Responses of all LOW (00:00:00:00) or all HIGH (FF:FF:FF:FF) are signs of a communication problem.
See TMC Troubleshooting for further information.

Usage

M122 [E] [I] [P<ms>] [S] [V] [X] [Y] [Z]

Parameters

[E]

Target E driver(s) only.

[I] 2.0.6

Flag to re-initialize stepper drivers with current settings.

[P<ms>] TMC_DEBUG MONITOR_DRIVER_STATUS

Interval between continuous debug reports, in milliseconds.

[S] TMC_DEBUG MONITOR_DRIVER_STATUS

Flag to enable/disable continuous debug reporting.

[V] TMC_DEBUG

Report raw register data. Refer to the datasheet to decypher.

[X]

Target X driver(s) only.

[Y]

Target Y driver(s) only.

[Z]

Target Z driver(s) only.