Page 1 of 1
Problems after Firmware modification
Posted: Thu Jun 01, 2017 5:12 pm
by pedrosc1967
Hello
I have bought a 3D Sensor for autoleveling. I have followed the steps described in this page:
http://www.geeetech.com/wiki/index.php/ ... ing_Sensor
When I arrive to the step of loading the modified firmware to the board, I get these errors:
Marlin_main.cpp: In function 'void servo_init()':
Marlin_main.cpp:544: error: 'servos' was not declared in this scope
Marlin_main.cpp: In function 'void engage_z_probe()':
Marlin_main.cpp:1126: error: 'servos' was not declared in this scope
Marlin_main.cpp: In function 'void retract_z_probe()':
Marlin_main.cpp:1142: error: 'servos' was not declared in this scope
Marlin_main.cpp: In function 'void homeaxis(int)':
Marlin_main.cpp:1207: error: 'servos' was not declared in this scope
Marlin_main.cpp:1248: error: 'servos' was not declared in this scope
Could you help me to solve these errors in Arduino?
Re: Problems after Firmware modification
Posted: Thu Jun 01, 2017 5:32 pm
by William
Hi,which version of Arduino are you using?I suggest you install version 1.0.1 which will be more stable.
Re: Problems after Firmware modification
Posted: Thu Jun 01, 2017 5:34 pm
by pedrosc1967
Yes, I am using Arduino 1.0.1
Re: Problems after Firmware modification
Posted: Thu Jun 01, 2017 6:02 pm
by William
pedrosc1967 wrote:Marlin_main.cpp: In function 'void servo_init()':
Marlin_main.cpp:544: error: 'servos' was not declared in this scope
Marlin_main.cpp: In function 'void engage_z_probe()':
Marlin_main.cpp:1126: error: 'servos' was not declared in this scope
Marlin_main.cpp: In function 'void retract_z_probe()':
Marlin_main.cpp:1142: error: 'servos' was not declared in this scope
Marlin_main.cpp: In function 'void homeaxis(int)':
Marlin_main.cpp:1207: error: 'servos' was not declared in this scope
Marlin_main.cpp:1248: error: 'servos' was not declared in this scope
According to these error,it shows the modified code are wrong.Please try to redownload the lastest version of marlin firmware ,then post the code area where you have modified.
Re: Problems after Firmware modification
Posted: Thu Jun 01, 2017 6:17 pm
by pedrosc1967
Yes, I tried this (reload unmodified software) yesterday.
Unmodified SW compiles and loads in the printer.
The issues appear when I do the modifications:
In configuration.h I changed this:
#define NUM_SERVOS 1
[It was NUM_SERVOS 3]
--
#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 10,90} // X,Y,Z Axis Extend and
[It was
#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,00} // X,Y,Z Axis Extend and ]
--
#define ENABLE_AUTO_BED_LEVELING //...
[It was
//#define ENABLE_AUTO_BED_LEVELING //...]
--
#define LEFT_PROBE_BED_POSITION 30
#define RIGHT_PROBE_BED_POSITION 200
#define BACK_PROBE_BED_POSITION 147
#define FRONT_PROBE_BED_POSITION 20
[It was
#define LEFT_PROBE_BED_POSITION 15
#define RIGHT_PROBE_BED_POSITION 170
#define BACK_PROBE_BED_POSITION 180
#define FRONT_PROBE_BED_POSITION 20 ]
--
#define X_PROBE_OFFSET_FROM_EXTRUDER 6
#define Y_PROBE_OFFSET_FROM_EXTRUDER -43
#define Z_PROBE_OFFSET_FROM_EXTRUDER -1.4
[It was
#define X_PROBE_OFFSET_FROM_EXTRUDER -25
#define Y_PROBE_OFFSET_FROM_EXTRUDER -29
#define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35 ]
--
In pins.h I changed the following:
#define Z_MAX_PIN -1//32
[It was #define Z_MAX_PIN 32]
--
#define SERVO0_PIN 32//13 // untested
[It was #define SERVO0_PIN 13 // untested]
These are the changes.
Re: Problems after Firmware modification
Posted: Fri Jun 02, 2017 10:15 am
by William
Hiļ¼the firmware setting is correct.But I want to know which control board are you using? Have you choosen the correct
Board and
Serial Port in the Arduino 1.0.1? Please post some the pictures about it.
- 1.png (64.55 KiB) Viewed 10144 times
Re: Problems after Firmware modification
Posted: Sat Jun 03, 2017 8:04 pm
by pedrosc1967
Yes, I have selected the board as you say and the port is correct.
Finally, I have been able to solve the issue by using this firmware:
http://www.geeetech.com/forum/download/file.php?id=2760
I have changed the LCD language to spanish, modified some values to make the calibration, etc.
Thanks for your help
Re: Problems after Firmware modification
Posted: Mon Jun 05, 2017 9:09 am
by William
It's my pleasure to help you,hope you enjoy the printing fun.