Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    M915 Incorrect stall detection range for TMC2209 drivers

    Scheduled Pinned Locked Moved Solved
    Documentation
    2
    2
    259
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gloomyandyundefined
      gloomyandy
      last edited by

      Hi,
      I've just noticed that the M915 documentation has...

      Snnn Stall detection threshold (-64 to +63, values below -10 not recommended). Lower values make stall detection more sensitive. S3 is a good starting point for many motors.
      

      However boards that use the TMC2209 device actually accept a value that has a range of -128 to +127 see: https://github.com/Duet3D/RepRapFirmware/blob/3.4-dev/src/Movement/StepperDrivers/TMC22xx.cpp#L996

      You might also want to update the references to TMC2660 and TMC2130 to also include TMC2209 and TMC5160 (and possibly other devices if you have boards that include them).

      droftartsundefined 1 Reply Last reply Reply Quote 3
      • droftartsundefined
        droftarts administrators @gloomyandy
        last edited by

        @gloomyandy Thanks, updated. It was getting a bit long winded, so I moved the parameter description to a note.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        1 Reply Last reply Reply Quote 1
        • droftartsundefined droftarts marked this topic as a question
        • droftartsundefined droftarts has marked this topic as solved
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA