Skip to content

[BUG] More endstops refactoring (#25758) breaks homing (G28) #26147

Open
@rondlh

Description

@rondlh

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

After #25758 (More endstops refactoring) homing doesn't work anymore. When sending G28 no axis move and the printer reports "Homing failed".
I use SPI_ENDSTOPS for X, Y and Y2 based on TMC5160, and Z-homing based on a BLtouch.
Disabling SPI_ENDSTOPS.solves this issue.
Also disabling the Y2 driver (// #define Y2_DRIVER_TYPE TMC5160). solves the issue.
So there seems to be a conflict between SPI_ENDSTOPS and using 2 motors on an axis.

Bug Timeline

#25758 August 2nd 2023

Expected behavior

Homing works as before

Actual behavior

No movement at all after an G28, just reports homing failed after a few seconds.
"G28 X" works fine. But no movement for "G28 Y", just a "Homing failed" message after a few seconds.
I believe this is related to SPI_ENDSTOPS, because when I disable it (and add some jumpers) then G28 works fine. I have 2 Y-motors, perhaps that is the cause of the problem.

Steps to Reproduce

  1. On a setup with SPI_ENDSTOPS on X, Y and Y.
  2. Send a G28

Version of Marlin Firmware

bugfix August 4th 2023

Printer model

Custom

Electronics

MKS Monster8 V1.0

Add-ons

BTT TFT35 V3.0

Bed Leveling

ABL Bilinear mesh

Your Slicer

Cura

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

To confirm the issue I downloaded Marlin August 2nd 2023, added my Configuration, PlatformIO, pins files, ExtUI files.
Configuration.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions