Skip to content

[BUG] (Z multi endstop resulting in errors when compiling) #22195

@kurtis-potier-geofabrica

Description

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

Yes, and the problem still exists.

Bug Description

I'm compiling Marlin for a machine with a Bigtreetech GTR1.0. I have had success with this is an earlier bugfix version a couple of months ago. I decided to upgrade to the new 2.0.9 version. My machine has 4 Z endstops. When compiling,
bug

Thank you!

Bug Timeline

new

Expected behavior

I would like to be able to compile this and get some of the new features available in the latest Marlin

Actual behavior

Compiling failed. My terminal output isn't super helpful but it points to the files M666.cpp, serial.h, macros.h. This line is underlined as the issue in M666.cpp:
REPEAT_S(2, INCREMENT(NUM_Z_STEPPER_DRIVERS), _ECHO_ZADJ)
with the comment:
expected a ')'C/C++(18)
I've been through this twice to make sure it was nothing I did to trigger it.

Steps to Reproduce

  1. Enable Z_multi_endstops in configuration.h, select board as BOARD_BTT_GTR_V1_0, baudrate to 115200, serial_port to -1.
  2. Enable X,Y,Z max plugs to use for extra endstops, and Z2,3,4 stepper drivers. Specify motors on the extender pins to be Z2,3,4
  3. Set Z stepper drivers to 4 in Configuration_adv.h and enable multiple Z endstops
    3)Building will result in errors.

Version of Marlin Firmware

2.0.9

Printer model

Custom

Electronics

Bigtreetech GTR1.0

Add-ons

M5 Extender

Your Slicer

Cura

Host Software

No response

Additional information & file uploads

Configuration + pins.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