From a9392c6b278f54d1dd307ec1af952cf05224c6b6 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 9 Mar 2018 03:59:18 -0600 Subject: [PATCH 1/2] Set a safe default MINIMUM_STEPPER_PULSE of 2 --- Marlin/Configuration_adv.h | 3 ++- .../AlephObjects/TAZ4/Configuration_adv.h | 3 ++- Marlin/example_configurations/Anet/A6/Configuration_adv.h | 3 ++- Marlin/example_configurations/Anet/A8/Configuration_adv.h | 3 ++- Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h | 3 ++- Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h | 3 ++- .../example_configurations/BQ/Hephestos_2/Configuration_adv.h | 3 ++- Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h | 3 ++- Marlin/example_configurations/Cartesio/Configuration_adv.h | 3 ++- .../example_configurations/Creality/CR-10/Configuration_adv.h | 3 ++- .../example_configurations/Creality/CR-10S/Configuration_adv.h | 3 ++- .../Creality/CR-10mini/Configuration_adv.h | 3 ++- .../Creality/Ender-2/Configuration_adv.h | 3 ++- .../Creality/Ender-4/Configuration_adv.h | 3 ++- Marlin/example_configurations/Felix/Configuration_adv.h | 3 ++- .../FolgerTech/i3-2020/Configuration_adv.h | 3 ++- .../Infitary/i3-M508/Configuration_adv.h | 3 ++- Marlin/example_configurations/JGAurora/A5/Configuration_adv.h | 3 ++- Marlin/example_configurations/Malyan/M150/Configuration_adv.h | 3 ++- .../Micromake/C1/enhanced/Configuration_adv.h | 3 ++- Marlin/example_configurations/RigidBot/Configuration_adv.h | 3 ++- Marlin/example_configurations/SCARA/Configuration_adv.h | 3 ++- Marlin/example_configurations/Sanguinololu/Configuration_adv.h | 3 ++- Marlin/example_configurations/TinyBoy2/Configuration_adv.h | 3 ++- .../example_configurations/Velleman/K8200/Configuration_adv.h | 3 ++- .../example_configurations/Velleman/K8400/Configuration_adv.h | 3 ++- .../Wanhao/Duplicator 6/Configuration_adv.h | 3 ++- .../delta/FLSUN/auto_calibrate/Configuration_adv.h | 3 ++- .../delta/FLSUN/kossel/Configuration_adv.h | 3 ++- .../delta/FLSUN/kossel_mini/Configuration_adv.h | 3 ++- .../example_configurations/delta/generic/Configuration_adv.h | 3 ++- .../delta/kossel_mini/Configuration_adv.h | 3 ++- .../delta/kossel_pro/Configuration_adv.h | 3 ++- .../example_configurations/delta/kossel_xl/Configuration_adv.h | 3 ++- .../gCreate/gMax1.5+/Configuration_adv.h | 3 ++- Marlin/example_configurations/makibox/Configuration_adv.h | 3 ++- .../example_configurations/tvrrug/Round2/Configuration_adv.h | 3 ++- Marlin/example_configurations/wt150/Configuration_adv.h | 3 ++- 38 files changed, 76 insertions(+), 38 deletions(-) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 0c908824d..89a054859 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h b/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h index a7ac88936..7440091dc 100644 --- a/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h +++ b/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Anet/A6/Configuration_adv.h b/Marlin/example_configurations/Anet/A6/Configuration_adv.h index 971f0dbae..4f71298f7 100644 --- a/Marlin/example_configurations/Anet/A6/Configuration_adv.h +++ b/Marlin/example_configurations/Anet/A6/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Anet/A8/Configuration_adv.h b/Marlin/example_configurations/Anet/A8/Configuration_adv.h index 860402232..ce1c27f17 100644 --- a/Marlin/example_configurations/Anet/A8/Configuration_adv.h +++ b/Marlin/example_configurations/Anet/A8/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h b/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h index bf2e13219..601b483e3 100644 --- a/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h +++ b/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h b/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h index 2dbd1f491..0c82c1753 100644 --- a/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h +++ b/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h b/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h index eef3a9642..3431cfef1 100644 --- a/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h +++ b/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h b/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h index 2dbd1f491..0c82c1753 100644 --- a/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h +++ b/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Cartesio/Configuration_adv.h b/Marlin/example_configurations/Cartesio/Configuration_adv.h index e4aea96a0..efbde1647 100644 --- a/Marlin/example_configurations/Cartesio/Configuration_adv.h +++ b/Marlin/example_configurations/Cartesio/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h b/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h index 7db3eccd0..aae4aebcf 100755 --- a/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h b/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h index 08d9bdfef..af5d97466 100644 --- a/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Creality/CR-10mini/Configuration_adv.h b/Marlin/example_configurations/Creality/CR-10mini/Configuration_adv.h index 0b1951936..1ecd36420 100644 --- a/Marlin/example_configurations/Creality/CR-10mini/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/CR-10mini/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Creality/Ender-2/Configuration_adv.h b/Marlin/example_configurations/Creality/Ender-2/Configuration_adv.h index 3e81e4377..b3ab5cdf0 100644 --- a/Marlin/example_configurations/Creality/Ender-2/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/Ender-2/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Creality/Ender-4/Configuration_adv.h b/Marlin/example_configurations/Creality/Ender-4/Configuration_adv.h index 53d8105c9..4173776a2 100644 --- a/Marlin/example_configurations/Creality/Ender-4/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/Ender-4/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Felix/Configuration_adv.h b/Marlin/example_configurations/Felix/Configuration_adv.h index ae877810c..e4200a3da 100644 --- a/Marlin/example_configurations/Felix/Configuration_adv.h +++ b/Marlin/example_configurations/Felix/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h b/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h index b941a7c13..21791732d 100644 --- a/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h +++ b/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h @@ -775,7 +775,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h b/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h index 336eddac3..46ab1c195 100644 --- a/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h +++ b/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h b/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h index 44f819f22..78f42750f 100644 --- a/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h +++ b/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Malyan/M150/Configuration_adv.h b/Marlin/example_configurations/Malyan/M150/Configuration_adv.h index 5fc1f5b9e..e3fb32897 100644 --- a/Marlin/example_configurations/Malyan/M150/Configuration_adv.h +++ b/Marlin/example_configurations/Malyan/M150/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h b/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h index b18b84344..5b59a3a10 100644 --- a/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h +++ b/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/RigidBot/Configuration_adv.h b/Marlin/example_configurations/RigidBot/Configuration_adv.h index 52040bf1a..20097dda1 100644 --- a/Marlin/example_configurations/RigidBot/Configuration_adv.h +++ b/Marlin/example_configurations/RigidBot/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/SCARA/Configuration_adv.h b/Marlin/example_configurations/SCARA/Configuration_adv.h index 7a28dc7b2..11e9f920b 100644 --- a/Marlin/example_configurations/SCARA/Configuration_adv.h +++ b/Marlin/example_configurations/SCARA/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Sanguinololu/Configuration_adv.h b/Marlin/example_configurations/Sanguinololu/Configuration_adv.h index 3708ee482..9553c98ba 100644 --- a/Marlin/example_configurations/Sanguinololu/Configuration_adv.h +++ b/Marlin/example_configurations/Sanguinololu/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/TinyBoy2/Configuration_adv.h b/Marlin/example_configurations/TinyBoy2/Configuration_adv.h index 29453468e..db6e4d71d 100644 --- a/Marlin/example_configurations/TinyBoy2/Configuration_adv.h +++ b/Marlin/example_configurations/TinyBoy2/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h b/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h index e9470bb00..af3f2a19c 100644 --- a/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h +++ b/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h @@ -789,7 +789,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h b/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h index 989028a43..752fc09e2 100644 --- a/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h +++ b/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h b/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h index bf20d7a69..768f20dda 100644 --- a/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h +++ b/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h index 1ac2393fb..13c99f44f 100644 --- a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h +++ b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h index 3d22a3a73..06b401e42 100644 --- a/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h +++ b/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h index 4a840c8f1..adfc30421 100644 --- a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h +++ b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/generic/Configuration_adv.h b/Marlin/example_configurations/delta/generic/Configuration_adv.h index 4a840c8f1..adfc30421 100644 --- a/Marlin/example_configurations/delta/generic/Configuration_adv.h +++ b/Marlin/example_configurations/delta/generic/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h index 4a840c8f1..adfc30421 100644 --- a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h index 737d8ef8a..e68581894 100644 --- a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h @@ -783,7 +783,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h index 5317ff2ba..47f26ab64 100644 --- a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h @@ -778,7 +778,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h b/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h index 230090a56..d5dd41888 100644 --- a/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h +++ b/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/makibox/Configuration_adv.h b/Marlin/example_configurations/makibox/Configuration_adv.h index d566cc9e7..90bc3fe49 100644 --- a/Marlin/example_configurations/makibox/Configuration_adv.h +++ b/Marlin/example_configurations/makibox/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h index 7081e51db..839cdba77 100644 --- a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h +++ b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h @@ -776,7 +776,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature diff --git a/Marlin/example_configurations/wt150/Configuration_adv.h b/Marlin/example_configurations/wt150/Configuration_adv.h index 7c73a4de2..dfdb35096 100644 --- a/Marlin/example_configurations/wt150/Configuration_adv.h +++ b/Marlin/example_configurations/wt150/Configuration_adv.h @@ -777,7 +777,8 @@ // The minimum pulse width (in µs) for stepping a stepper. // Set this if you find stepping unreliable, or if using a very fast CPU. -#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed +// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers +#define MINIMUM_STEPPER_PULSE 2 // @section temperature From 3c6d2d7711c77b591c83a75e16da5ad435c49a86 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 9 Mar 2018 05:24:10 -0600 Subject: [PATCH 2/2] Add more delay before pulse off in Linear Advance ISR A capital idea from https://github.com/MarlinFirmware/Marlin/pull/9914#issuecomment-371614153 --- Marlin/stepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index 2bcafa469..de9a39b8a 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -797,7 +797,7 @@ void Stepper::isr() { #define STOP_E_PULSE(INDEX) do{ if (e_steps) { E_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0) #else #define START_E_PULSE(INDEX) do{ if (e_steps) E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN); }while(0) - #define STOP_E_PULSE(INDEX) do { if (e_steps) { E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0) + #define STOP_E_PULSE(INDEX) do { if (e_steps) { e_steps < 0 ? ++e_steps : --e_steps; E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); } }while(0) #endif if (use_advance_lead) {