MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.18k stars 19.21k forks source link

#error "Babystep_zprobe_offset requires a probe" #21870

Closed gepigom2883 closed 3 years ago

gepigom2883 commented 3 years ago

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

Yes, and the problem still exists.

Bug Description

I can't compile Marlin with the last version because it shows #error "Babystep_zprobe_offset requires a probe"

In file included from Marlin\src\HAL\STM32../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\HAL.cpp:28: Marlin\src\HAL\STM32../../inc/SanityCheck.h:808:6: error: #error "BABYSTEP_ZPROBE_OFFSET requires a probe." 808 | #error "BABYSTEP_ZPROBE_OFFSET requires a probe." | ^~~~~ [.pio\build\ET4\src\src\HAL\STM32\HAL_SPI.cpp.o] Error 1 [.pio\build\ET4\src\src\HAL\STM32\HAL.cpp.o] Error 1 from Marlin\src\HAL\STM32\MarlinSerial.cpp:21: Marlin\src\HAL\STM32../../inc/SanityCheck.h:808:6: error: #error "BABYSTEP_ZPROBE_OFFSET requires a probe." 808 | #error "BABYSTEP_ZPROBE_OFFSET requires a probe." | ^~~~~ *** [.pio\build\ET4\src\src\HAL\STM32\MarlinSerial.cpp.o] Error 1

And I don't see any Babystep_zprobe_offset inside configuration.h:

"//=========================================================================== //============================= Z Probe Options ============================= //=========================================================================== // @section probes

// // See https://marlinfw.org/docs/configuration/probes.html //

/**

// Force the use of the probe for Z-axis homing //#define USE_PROBE_FOR_Z_HOMING

/**

/**

/**

/**

/**

/**

/**

/**

// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN) //#define SOLENOID_PROBE

// A sled-mounted probe like those designed by Charles Bell. //#define Z_PROBE_SLED //#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.

// A probe deployed by moving the x-axis, such as the Wilson II's rack-and-pinion probe designed by Marty Rice. //#define RACK_AND_PINION_PROBE

if ENABLED(RACK_AND_PINION_PROBE)

define Z_PROBE_DEPLOY_X X_MIN_POS

define Z_PROBE_RETRACT_X X_MAX_POS

endif

// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J // When the pin is defined you can use M672 to set/reset the probe sensivity. //#define DUET_SMART_EFFECTOR

if ENABLED(DUET_SMART_EFFECTOR)

define SMART_EFFECTOR_MOD_PIN -1 // Connect a GPIO pin to the Smart Effector MOD pin

endif

/**

// // For Z_PROBE_ALLEN_KEY see the Delta example configurations. //

/**

// Most probes should stay away from the edges of the bed, but // with NOZZLE_AS_PROBE this can be negative for a wider probing area.

define PROBING_MARGIN 25

// X and Y axis travel speed (mm/min) between probes

define XY_PROBE_FEEDRATE (133*60)

// Feedrate (mm/min) for the first approach when double-probing (MULTIPLE_PROBING == 2)

define Z_PROBE_FEEDRATE_FAST (8*60)

// Feedrate (mm/min) for the "accurate" probe of each point

define Z_PROBE_FEEDRATE_SLOW (Z_PROBE_FEEDRATE_FAST / 2)

/**

/**

/**

/**

define Z_PROBE_LOW_POINT -2 // Farthest distance below the trigger-point to go before stopping

// For M851 give a range for adjusting the Z probe offset

define Z_PROBE_OFFSET_RANGE_MIN -20

define Z_PROBE_OFFSET_RANGE_MAX 20

// Enable the M48 repeatability test to test probe accuracy //#define Z_MIN_PROBE_REPEATABILITY_TEST

// Before deploy/stow pause for user confirmation //#define PAUSE_BEFORE_DEPLOY_STOW

if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)

//#define PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED // For Manual Deploy Allenkey Probe

endif

/**

// Require minimum nozzle and/or bed temperature for probing //#define PREHEAT_BEFORE_PROBING

if ENABLED(PREHEAT_BEFORE_PROBING)

define PROBING_NOZZLE_TEMP 120 // (°C) Only applies to E0 at this time

define PROBING_BED_TEMP 50

endif

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 // :{ 0:'Low', 1:'High' }

define X_ENABLE_ON 0

define Y_ENABLE_ON 0

define Z_ENABLE_ON 0

define E_ENABLE_ON 0 // For all extruders

// Disable axis steppers immediately when they're not being stepped. // WARNING: When motors turn off there is a chance of losing position accuracy!

define DISABLE_X false

define DISABLE_Y false

define DISABLE_Z false

// Turn off the display blinking that warns about possible accuracy reduction //#define DISABLE_REDUCED_ACCURACY_WARNING

// @section extruder

define DISABLE_E false // Disable the extruder when not stepping

define DISABLE_INACTIVE_EXTRUDER // Keep only the active extruder enabled

// @section machine

// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.

define INVERT_X_DIR true

define INVERT_Y_DIR false

define INVERT_Z_DIR true

// @section extruder

// For direct drive extruder v9 set to true, for geared extruder set to false.

define INVERT_E0_DIR false

define INVERT_E1_DIR false

define INVERT_E2_DIR false

define INVERT_E3_DIR false

define INVERT_E4_DIR false

define INVERT_E5_DIR false

define INVERT_E6_DIR false

define INVERT_E7_DIR false

// @section homing

//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed. Also enable HOME_AFTER_DEACTIVATE for extra safety. //#define HOME_AFTER_DEACTIVATE // Require rehoming after steppers are deactivated. Also enable NO_MOTION_BEFORE_HOMING for extra safety.

/**

//#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ... // Be sure to have this much clearance over your Z_MAX_POS to prevent grinding.

//#define Z_AFTER_HOMING 10 // (mm) Height to move to after homing Z

// Direction of endstops when homing; 1=MAX, -1=MIN // :[-1,1]

define X_HOME_DIR -1

define Y_HOME_DIR -1

define Z_HOME_DIR 1

// @section machine

// The size of the printable area

define X_BED_SIZE 220

define Y_BED_SIZE 220

// Travel limits (mm) after homing, corresponding to endstop positions.

define X_MIN_POS -1

define Y_MIN_POS -11

define Z_MIN_POS 0

define X_MAX_POS (X_BED_SIZE + 50)

define Y_MAX_POS Y_BED_SIZE

define Z_MAX_POS 250

/**

// Min software endstops constrain movement within minimum coordinate bounds

define MIN_SOFTWARE_ENDSTOPS

if ENABLED(MIN_SOFTWARE_ENDSTOPS)

define MIN_SOFTWARE_ENDSTOP_X

define MIN_SOFTWARE_ENDSTOP_Y

define MIN_SOFTWARE_ENDSTOP_Z

endif

// Max software endstops constrain movement within maximum coordinate bounds

define MAX_SOFTWARE_ENDSTOPS

if ENABLED(MAX_SOFTWARE_ENDSTOPS)

define MAX_SOFTWARE_ENDSTOP_X

define MAX_SOFTWARE_ENDSTOP_Y

define MAX_SOFTWARE_ENDSTOP_Z

endif

if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)

define SOFT_ENDSTOPS_MENU_ITEM // Enable/Disable software endstops from the LCD

endif

/**

I haven't on my Anet ET4X any BL Touch and I can't finish to compile it. Please I need help because I'm new.

I tried to search by myself how to fix it but nothing.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

Marlin bugfix 2.0

Printer model

Anet ET4x

Electronics

Anet Silence motherboard

Add-ons

No response

Your Slicer

Cura

Host Software

No response

Additional information & file uploads

No response

ellensp commented 3 years ago

It is in Configuration_adv,.h

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.

gepigom2883 commented 3 years ago

DONE! Thanks!

github-actions[bot] commented 3 years ago

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.