Welcome! Log In Create A New Profile

Advanced

Einsy + BLTouch? compilation issues..

Posted by pikelo 
Einsy + BLTouch? compilation issues..
April 27, 2018 11:36AM
Hello guys, I got an Einsy Rambo board and wanted to make it work with my own Prusa i3. Trying to configure it for HOMING SENSORLESS feature an also with BLTouch Z sensor for bed leveling. I tried to compile the Marlin but got always the same error:


sketch/Marlin_main.cpp: In function 'void servo_init()':
Marlin_main.cpp:969: error: 'STOW_Z_SERVO' was not declared in this scope
STOW_Z_SERVO();
^
sketch/Marlin_main.cpp: In function 'void bltouch_command(int)':
Marlin_main.cpp:2047: error: 'MOVE_SERVO' was not declared in this scope
MOVE_SERVO(Z_PROBE_SERVO_NR, angle); // Give the BL-Touch the command and wait
^
exit status 1
'STOW_Z_SERVO' was not declared in this scope


I can't attach here the Marlin file but it's linked at Dropbox here: [www.dropbox.com]

so if anyone could help me it'll make me very happy smiling smiley Thank you!!
Regards
Re: Einsy + BLTouch? compilation issues..
August 10, 2018 10:48AM
So this just happened to me last night, I can't compile BLtouch on an einsy board... did you ever get a response for this?

Arduino: 1.8.5 (Mac OS X), Board: "RAMBo"

sketch/Marlin_main.cpp: In function 'void servo_init()':
Marlin_main.cpp:950: error: 'STOW_Z_SERVO' was not declared in this scope
STOW_Z_SERVO();
^
sketch/Marlin_main.cpp: In function 'void bltouch_command(int)':
Marlin_main.cpp:2035: error: 'MOVE_SERVO' was not declared in this scope
MOVE_SERVO(Z_PROBE_SERVO_NR, angle); // Give the BL-Touch the command and wait
^
'STOW_Z_SERVO' was not declared in this scope
Re: Einsy + BLTouch? compilation issues..
August 10, 2018 10:50AM
Hi, for me it was a bad board.. got a new one and working well. Other issues may be also.
Re: Einsy + BLTouch? compilation issues..
August 10, 2018 11:26AM
The code only defines STOW_Z_SERVO if HAS_SERVOS is defined

which comes from

#define HAS_SERVOS (defined(NUM_SERVOS) && NUM_SERVOS > 0 && (HAS_SERVO_0 || HAS_SERVO_1 || HAS_SERVO_2 || HAS_SERVO_3))

the various HAS_SERVO_{number} check that the corresponding pin SERVO{number} has been defined

in pins_EINSY_RAMBO.h (you do have motherboard set to BOARD_EINSY_RAMBO ??)

is
  #if ENABLED(BLTOUCH)
    #define Z_STOP_PIN     11   // Y-MIN
    #define SERVO0_PIN     10   // Z-MIN
  #else

so all you have to set is #define BLTOUCH in configuration.h
Re: Einsy + BLTouch? compilation issues..
August 10, 2018 10:39PM
Yep have the MB selected correctly and everything.. and by default those pins are called out for the einsy_board, aren't they.. I double checked everything and they are there...(attached file)

is there anything in the config file that I have to set up, that would flag that error? for example when you set the board and don't configure the TMC drivers?

If I comment out the BLtouch everything compiles just fine...

Edited 2 time(s). Last edit at 08/10/2018 10:43PM by ciamex.
Attachments:
open | download - Screen Shot 2018-08-10 at 7.36.35 PM.png (136.1 KB)
Re: Einsy + BLTouch? compilation issues..
December 24, 2018 01:02PM
Did you figure it out? I'm installing my Einsy and came across the same issue
Sorry, only registered users may post in this forum.

Click here to login