Browse Source

Corrections for dylsexic TMC

pull/1/head
Scott Lahteine 6 years ago
parent
commit
7d5c336c56
  1. 2
      Marlin/src/HAL/HAL_STM32F7/TMC2660.cpp
  2. 6
      Marlin/src/HAL/HAL_STM32F7/TMC2660.h

2
Marlin/src/HAL/HAL_STM32F7/TMC2660.cpp

@ -94,7 +94,7 @@
#define STALL_GUARD_CONFIG_PATTERN 0x17F00ul #define STALL_GUARD_CONFIG_PATTERN 0x17F00ul
#define STALL_GUARD_VALUE_PATTERN 0x7F00ul #define STALL_GUARD_VALUE_PATTERN 0x7F00ul
//definitions for the input from the TCM260 //definitions for the input from the TMC2660
#define STATUS_STALL_GUARD_STATUS 0x1ul #define STATUS_STALL_GUARD_STATUS 0x1ul
#define STATUS_OVER_TEMPERATURE_SHUTDOWN 0x2ul #define STATUS_OVER_TEMPERATURE_SHUTDOWN 0x2ul
#define STATUS_OVER_TEMPERATURE_WARNING 0x4ul #define STATUS_OVER_TEMPERATURE_WARNING 0x4ul

6
Marlin/src/HAL/HAL_STM32F7/TMC2660.h

@ -33,14 +33,14 @@
//! return value for TMC26XStepper.getOverTemperature() if there is a overtemperature situation in the TMC chip //! return value for TMC26XStepper.getOverTemperature() if there is a overtemperature situation in the TMC chip
/*! /*!
* This warning indicates that the TCM chip is too warm. * This warning indicates that the TMC chip is too warm.
* It is still working but some parameters may be inferior. * It is still working but some parameters may be inferior.
* You should do something against it. * You should do something against it.
*/ */
#define TMC26X_OVERTEMPERATURE_PREWARING 1 #define TMC26X_OVERTEMPERATURE_PREWARING 1
//! return value for TMC26XStepper.getOverTemperature() if there is a overtemperature shutdown in the TMC chip //! return value for TMC26XStepper.getOverTemperature() if there is a overtemperature shutdown in the TMC chip
/*! /*!
* This warning indicates that the TCM chip is too warm to operate and has shut down to prevent damage. * This warning indicates that the TMC chip is too warm to operate and has shut down to prevent damage.
* It will stop working until it cools down again. * It will stop working until it cools down again.
* If you encouter this situation you must do something against it. Like reducing the current or improving the PCB layout * If you encouter this situation you must do something against it. Like reducing the current or improving the PCB layout
* and/or heat management. * and/or heat management.
@ -115,7 +115,7 @@ class TMC26XStepper {
* *
* Keep in mind that you must also call TMC26XStepper.start() in order to configure the stepper driver for use. * Keep in mind that you must also call TMC26XStepper.start() in order to configure the stepper driver for use.
* *
* By default the Constant Off Time chopper is used, see TCM262Stepper.setConstantOffTimeChopper() for details. * By default the Constant Off Time chopper is used, see TMC26XStepper.setConstantOffTimeChopper() for details.
* This should work on most motors (YMMV). You may want to configure and use the Spread Cycle Chopper, see setSpreadCycleChopper(). * This should work on most motors (YMMV). You may want to configure and use the Spread Cycle Chopper, see setSpreadCycleChopper().
* *
* By default a microstepping of 1/32th is used to provide a smooth motor run, while still giving a good progression per step. * By default a microstepping of 1/32th is used to provide a smooth motor run, while still giving a good progression per step.

Loading…
Cancel
Save