Problems after Firmware modification

Post Reply
pedrosc1967
Posts: 5
Joined: Sat May 27, 2017 6:00 am

Problems after Firmware modification

Post by pedrosc1967 » Thu Jun 01, 2017 5:12 pm

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?

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Problems after Firmware modification

Post by William » Thu Jun 01, 2017 5:32 pm

Hi,which version of Arduino are you using?I suggest you install version 1.0.1 which will be more stable.
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

pedrosc1967
Posts: 5
Joined: Sat May 27, 2017 6:00 am

Re: Problems after Firmware modification

Post by pedrosc1967 » Thu Jun 01, 2017 5:34 pm

Yes, I am using Arduino 1.0.1

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Problems after Firmware modification

Post by William » Thu Jun 01, 2017 6:02 pm

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.
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

pedrosc1967
Posts: 5
Joined: Sat May 27, 2017 6:00 am

Re: Problems after Firmware modification

Post by pedrosc1967 » Thu Jun 01, 2017 6:17 pm

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.

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Problems after Firmware modification

Post by William » Fri Jun 02, 2017 10:15 am

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
1.png (64.55 KiB) Viewed 10153 times
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

pedrosc1967
Posts: 5
Joined: Sat May 27, 2017 6:00 am

Re: Problems after Firmware modification

Post by pedrosc1967 » Sat Jun 03, 2017 8:04 pm

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

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Problems after Firmware modification

Post by William » Mon Jun 05, 2017 9:09 am

It's my pleasure to help you,hope you enjoy the printing fun. :D
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

Post Reply