bigtreetech / SKR-2

192 stars 179 forks source link

Dual Z endstop configuration problem #44

Open eccentrichead opened 3 years ago

eccentrichead commented 3 years ago

Issue:

When Configuring of Dual Z endstop in SKR2 board the Z2_min fails to get mapped to XMAXor YMAX pins.

Steps to reproduce:

Actual result:

Expected result:

Additional information

eccentrichead commented 3 years ago

@bigtreetech , kindly have a look. Thanks!

SMTDesigns commented 2 years ago

pins_BTT_SKR_V2.0_common.h defines what hardware pin on the board gets "attached" to the main marlin software. Line 166 is

elif ENABLED(Z_MULTI_ENDSTOPS)

ifndef Z_MIN_PIN

#define Z_MIN_PIN                       PC0   // Z-STOP

endif

ifndef Z_MAX_PIN

#define Z_MAX_PIN                       PC15  // PWRDET

endif

else

ifndef Z_STOP_PIN

#define Z_STOP_PIN                      PC0   // Z-STOP

endif

endif

I was trying to use the I_MIN assignment because there is no MAX definitions in the latest code I downloaded a few days ago. I ended up seeing this thread and tracked down where Z_MAX_PIN was defined.

eccentrichead commented 2 years ago

@bigtreetech have you had a chance to look at it?

SMTDesigns commented 2 years ago

I moved on to the MKS Robin Nano V3.0 board that is working great. The BTT ended up having issues after I got one working (don't remember what now...). I ended up changing to the MKS Robin Nano v3.0 board and it is working great on two printers so far.