Skip to content

Conversation

@dbuezas
Copy link
Contributor

@dbuezas dbuezas commented Dec 30, 2025

Description

TMC2208 Direction-Flip Delay

Some TMC2208 / TMC2208_STANDALONE setups may require a short delay after a DIR change
to avoid timing-sensitive glitches, especially when using stealthChop.

When enabled for an axis, FT Motion will "pause" that axis for > 750µs after a detected
direction flip by holding its trajectory coordinate constant for a multiple of FTM_TS
frames. For the default FTM_FS = 1000, it is a single 1ms frame.
Other axes keep moving normally, and the wait is cancelled if the axis flips again.

NOTE: Typically only needed if you actually use stealthChop on that axis.

Requirements

Benefits

Configurations

FTM + 2208 drivers in stealthchop

Related Issues

Hopefully fixes #28248

@dbuezas dbuezas changed the title Fix 2208 attempt FTMotion: Fix TMC2208 timing bug (attempt) Dec 30, 2025
@thisiskeithb thisiskeithb added Needs: Testing Testing is needed for this change F: Trinamic labels Dec 31, 2025
@yrabbit
Copy link

yrabbit commented Jan 2, 2026

The situation with TMC2225 (TMC2208) has been corrected. My settings for FTM, Creality 4.2.7 board:

#define X_DRIVER_TYPE  TMC2208_STANDALONE
#define Y_DRIVER_TYPE  TMC2208_STANDALONE
#define Z_DRIVER_TYPE  TMC2208_STANDALONE
#define E0_DRIVER_TYPE TMC2208_STANDALONE

#define FTM_IS_DEFAULT_MOTION 
#define NO_STANDARD_MOTION 

#define FTM_DEFAULT_SHAPER_X      ftMotionShaper_ZVD
#define FTM_SHAPING_DEFAULT_FREQ_X   40.0f

#define FTM_DEFAULT_SHAPER_Y      ftMotionShaper_ZVD
#define FTM_SHAPING_DEFAULT_FREQ_Y   40.0f

#define FTM_DEFAULT_SHAPER_Z      ftMotionShaper_NONE
#define FTM_SHAPING_DEFAULT_FREQ_Z   21.0f

#define FTM_SHAPER_E
#define FTM_DEFAULT_SHAPER_E      ftMotionShaper_NONE
#define FTM_SHAPING_DEFAULT_FREQ_E   21.0f 

#define FTM_SMOOTHING
#define FTM_SMOOTHING_TIME_E        0.06f

#define FTM_POLYS 
#define FTM_TRAJECTORY_TYPE POLY5 

#define FTM_BUFFER_SIZE             2048
#define FTM_FS  

Before the fixes related to TMC2225 (TMC2208), the extruder would stop:

n-1.mp4

After corrections in this PR, stoppages due to TMC2225 (TMC2208) are no longer observed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F: Trinamic Needs: Testing Testing is needed for this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] FTM. Complete stoppage of the extruder at a random moment in time.

3 participants