Marlin: [BUG] #error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined."

Created on 11 Jan 2020  路  14Comments  路  Source: MarlinFirmware/Marlin

error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined."

when trying to compile and upload a marlin 2.0 build for skr 1.4 using visual studio code and platform io.
i input my configs and it gives me the error listed above even though i have "USE_ZMIN_PLUG" enabled as well as "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN"

My Configurations

Marlin.zip

Steps to Reproduce

1-download latest marlin 2.0
2- configure for level sensor on zmin plug on skr 1.4
3-build

Expected behavior: a successful build/upload

Actual behavior: #error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined."

Additional Information

brand new board and nothing plugged into it besides usb

Most helpful comment

OK. plug all you endstops into the formally called Min endstop plugs. plug your probe into the pwrdet plug (formally z-max)
In Configuation.h disable "#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN" instead use "#define Z_MIN_PROBE_PIN" ans set the pin to "P1_00"

All 14 comments

I read the config.h, maybe the issue is in the homing direction (it is going towards the ZMAX, not ZMIN), but i'm not sure if it can work like that. another thing that might be the issue is that the pin is not defined for the board you defined ( #define MOTHERBOARD BOARD_BIGTREE_SKR_V1_4 ) . take a look in its config inside of Marlin\src\HAL

Whomever created the pins_BTT_SKR_V1_4.h defined X_STOP_PIN, Y_STOP_PIN and Z_STOP_PIN instead of all the MIN_PIN and MAX_PIN's
Edit: I'm in error. BTT re-purposed the max ensdstop plugs for other features. So X_STOP_PIN, Y_STOP_PIN and Z_STOP_PIN is the correct way to go.

Whomever created the pins_BTT_SKR_V1_4.h defined X_STOP_PIN, Y_STOP_PIN and Z_STOP_PIN instead of all the MIN_PIN and MAX_PIN's

The SKR 1.4 only has stop pins for each axis because it only has one set of endstops, whereas the SKR 1.3 has both min & max sets.

If it works it might be a good idea to commit these changes to avoid future problems

No, that would be a misconfiguration. See the SKR 1.4 pins layout.

@thisiskeithb not according to the pin diagram from BTT https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/blob/master/BTT%20SKR%20V1.4/Hardware/BTT%20SKR%20V1.4PIN.pdf

Did you mean to link something else? There are only stop pins (the others are used for other features):
image

Oh I see... they repurposed the max's endstop plugs... I didnt see that..

so is this a user misunderstanding then?

ok so i have a max endstop for the z and an inductive sensor for bed leveling i guess i dont need (and cant use with the current pins configuration) the endstop? maybe have 2 pin layouts for the 1.4 as theyve changed the assignments from the 1.3 for other sensors. i see my error in assuming the plug assignments would be the same, ugh i just should have gone for 2209 drivers to have sensorless homing =/

OK. plug all you endstops into the formally called Min endstop plugs. plug your probe into the pwrdet plug (formally z-max)
In Configuation.h disable "#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN" instead use "#define Z_MIN_PROBE_PIN" ans set the pin to "P1_00"

thank you for all the help everyone, i think ive got it!

just to make sure it doesn't interfere also add #define PS_ON_PIN -1 after you defined the MOTHERBOARD in Configuration.h ie

#define MOTHERBOARD BOARD_BIGTREE_SKR_V1_4     
#define PS_ON_PIN -1

@boelle yes it was a miss understanding. not a bug. seems all sorted now.

thank you for all the help everyone, i think ive got it!

Hi, Is your problem solved. Can you share the config files.

I added a lines in the pins_BTT_SKR_V1_4_Turbo.h file and changed Z_STOP_PIN to Z_MIN_PIN. Left #define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN enabled. Seems to solve my problem. This is for Anycubic Kossel Linear Plus stock probe.

define X_STOP_PIN P1_29

define Y_STOP_PIN P1_28

define Z_MIN_PIN P1_27

define X_MAX_PIN P1_26

define Y_MAX_PIN P1_25

define Z_MAX_PIN P1_00

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Liger0 picture Liger0  路  169Comments

kAdonis picture kAdonis  路  169Comments

komandrik picture komandrik  路  221Comments

mpm1396 picture mpm1396  路  729Comments

thinkyhead picture thinkyhead  路  1715Comments