Upload of Firmware for Arduino Mega

Hello,

I tried to upload the firmware 0.92.9 on my Arduino Mega without success. Thank you in advance for your help.

The error message is "error: operator '&&' has no left operand" as hereafter :

                            ^

Printer.h:545: error: operator '>' has no left operand

 #if (X_ENABLE_PIN > -1)

                   ^

Printer.h:548: error: operator '||' has no left operand

 #if (FEATURE_TWO_XSTEPPER || DUAL_X_AXIS) && (X2_ENABLE_PIN > -1)

                           ^

Printer.h:556: error: operator '>' has no left operand

 #if (Y_ENABLE_PIN > -1)

                   ^

Printer.h:559: error: operator '&&' has no left operand

 #if FEATURE_TWO_YSTEPPER && (Y2_ENABLE_PIN > -1)

                          ^

Printer.h:566: error: operator '>' has no left operand

 #if (Z_ENABLE_PIN > -1)

                   ^

Printer.h:569: error: operator '&&' has no left operand

 #if FEATURE_TWO_ZSTEPPER && (Z2_ENABLE_PIN > -1)

                          ^

Printer.h:572: error: operator '&&' has no left operand

 #if FEATURE_THREE_ZSTEPPER && (Z3_ENABLE_PIN > -1)

                            ^

Printer.h:582: error: operator '||' has no left operand

 #if FEATURE_TWO_XSTEPPER || DUAL_X_AXIS

                          ^

Printer.h:589: error: operator '||' has no left operand

 #if FEATURE_TWO_XSTEPPER || DUAL_X_AXIS

                          ^

Printer.h:600: error: #if with no expression

 #if FEATURE_TWO_YSTEPPER

                         ^

Printer.h:607: error: #if with no expression

 #if FEATURE_TWO_YSTEPPER

                         ^

Printer.h:617: error: #if with no expression

 #if FEATURE_TWO_ZSTEPPER

                         ^

Printer.h:620: error: #if with no expression

 #if FEATURE_THREE_ZSTEPPER

                           ^

Printer.h:627: error: #if with no expression

 #if FEATURE_TWO_ZSTEPPER

                         ^

Printer.h:630: error: #if with no expression

 #if FEATURE_THREE_ZSTEPPER

                           ^

Printer.h:841: error: operator '>' has no left operand

 #if FAN_BOARD_PIN > -1

                   ^

In file included from C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:0:

Repetier.h:338: error: operator '==' has no left operand

 #define GANTRY ( DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

                              ^

sketch\Printer.h:881:6: note: in expansion of macro 'GANTRY'

 #if (GANTRY) && !defined(FAST_COREXYZ)

      ^

Repetier.h:338: error: operator '==' has no left operand

 #define GANTRY ( DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

                              ^

sketch\Printer.h:918:6: note: in expansion of macro 'GANTRY'

 #if (GANTRY) && !defined(FAST_COREXYZ)

      ^

In file included from sketch\Repetier.h:885:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

Printer.h:961: error: #if with no expression

 #if DUAL_X_AXIS

                ^

Printer.h:976: error: #if with no expression

 #if FEATURE_TWO_XSTEPPER

                         ^

Printer.h:984: error: #if with no expression

 #if FEATURE_TWO_YSTEPPER

                         ^

Printer.h:991: error: #if with no expression

 #if FEATURE_TWO_ZSTEPPER

                         ^

Printer.h:994: error: #if with no expression

 #if FEATURE_THREE_ZSTEPPER

                           ^

Printer.h:1001: error: operator '||' has no left operand

 #if FEATURE_TWO_XSTEPPER || DUAL_X_AXIS

                          ^

Printer.h:1005: error: #if with no expression

 #if FEATURE_TWO_YSTEPPER

                         ^

Printer.h:1009: error: #if with no expression

 #if FEATURE_TWO_ZSTEPPER

                         ^

Printer.h:1012: error: #if with no expression

 #if FEATURE_THREE_ZSTEPPER

                           ^

Printer.h:1020: error: #if with no expression

 #if ALLOW_QUADSTEPPING

                       ^

Printer.h:1044: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == XZ_GANTRY || DRIVE_SYSTEM == ZX_GANTRY

                  ^

In file included from C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:0:

Repetier.h:338: error: operator '==' has no left operand

 #define GANTRY ( DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

                              ^

sketch\Printer.h:1052:5: note: in expansion of macro 'GANTRY'

 #if GANTRY

     ^

In file included from sketch\Repetier.h:885:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

Printer.h:1087: error: operator '>' has no left operand

 #if STEPPER_HIGH_DELAY>0

                       ^

Printer.h:1124: error: #if with no expression

 #if FEATURE_Z_PROBE

                    ^

Printer.h:1135: error: #if with no expression

 #if FEATURE_AUTOLEVEL

                      ^

Printer.h:1140: error: #if with no expression

 #if DISTORTION_CORRECTION

                          ^

Printer.h:1163: error: #if with no expression

 #if JSON_OUTPUT

                ^

In file included from sketch\Repetier.h:886:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

motion.h:208: error: #if with no expression

 #if USE_ADVANCE

                ^

motion.h:312: error: #if with no expression

 #if FEATURE_Z_PROBE

                    ^

motion.h:332: error: #if with no expression

 #if FEATURE_Z_PROBE

                    ^

motion.h:346: error: operator '==' has no left operand

 #if DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY

                 ^

motion.h:348: error: operator '==' has no left operand

 #elif DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY 

                   ^

motion.h:356: error: operator '==' has no left operand

 #if DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY

                 ^

motion.h:364: error: operator '==' has no left operand

 #if DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY 

                 ^

motion.h:463: error: #if with no expression

 #if USE_ADVANCE

                ^

In file included from C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:0:

Repetier.h:338: error: operator '==' has no left operand

 #define GANTRY ( DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

                              ^

sketch\motion.h:522:7: note: in expansion of macro 'GANTRY'

 #if !(GANTRY) || defined(FAST_COREXYZ)

       ^

In file included from sketch\Repetier.h:886:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

motion.h:525: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == XY_GANTRY || DRIVE_SYSTEM == XZ_GANTRY

                  ^

motion.h:537: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == YX_GANTRY || DRIVE_SYSTEM == ZX_GANTRY

                  ^

In file included from C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:0:

Repetier.h:338: error: operator '==' has no left operand

 #define GANTRY ( DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

                              ^

sketch\motion.h:556:7: note: in expansion of macro 'GANTRY'

 #if !(GANTRY) || DRIVE_SYSTEM == ZX_GANTRY || DRIVE_SYSTEM == XZ_GANTRY || defined(FAST_COREXYZ)

       ^

In file included from sketch\Repetier.h:886:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

motion.h:559: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == XY_GANTRY

                  ^

motion.h:571: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == YX_GANTRY

                  ^

In file included from C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:0:

Repetier.h:338: error: operator '==' has no left operand

 #define GANTRY ( DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

                              ^

sketch\motion.h:591:7: note: in expansion of macro 'GANTRY'

 #if !(GANTRY) || DRIVE_SYSTEM == YX_GANTRY || DRIVE_SYSTEM == XY_GANTRY || defined(FAST_COREXYZ)

       ^

In file included from sketch\Repetier.h:886:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

motion.h:594: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == XZ_GANTRY

                  ^

motion.h:606: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == ZX_GANTRY

                  ^

motion.h:687: error: #if with no expression

 #if DISTORTION_CORRECTION

                          ^

In file included from sketch\Repetier.h:886:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

motion.h:693: error: #if with no expression

 #if ARC_SUPPORT

                ^

In file included from C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:0:

Repetier.h:896: error: #if with no expression

 #if FEATURE_FAN_CONTROL

                        ^

Repetier.h:899: error: #if with no expression

 #if FEATURE_FAN2_CONTROL

                         ^

Repetier.h:903: error: #if with no expression

 #if SDSUPPORT

              ^

In file included from sketch\Repetier.h:988:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

Eeprom.h:131: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:178: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:199: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:205: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:212: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:219: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:226: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:233: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:240: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:247: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:254: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:261: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:268: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:275: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:282: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:289: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:296: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:304: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:311: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:318: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:348: error: operator '==' has no left operand

 #if DRIVE_SYSTEM == DELTA

                  ^

Eeprom.h:518: error: #if with no expression

 #if MIXING_EXTRUDER

                    ^

Eeprom.h:529: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:538: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:545: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:552: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:559: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

Eeprom.h:566: error: operator '!=' has no left operand

 #if EEPROM_MODE != 0

                 ^

In file included from sketch\Repetier.h:1004:0,

                 from C:\Users\biwako\Downloads\三角洲å?Œå–·å¤´æ•™ç¨‹20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:151:

Drivers.h:93: error: operator '&&' has no right operand

 #if defined(NUM_MOTOR_DRIVERS) && NUM_MOTOR_DRIVERS > 0

                                                     ^

Drivers.h:105: error: operator '&&' has no right operand

 #if defined(SUPPORT_LASER) && SUPPORT_LASER

                                            ^

Drivers.h:122: error: operator '&&' has no right operand

 #if defined(SUPPORT_CNC) && SUPPORT_CNC

                                        ^

C:\Users\biwako\Downloads\三角洲�喷头教程20150804\Repetier-Firmware 0.92.9\Repetier\Repetier.ino:152:17: fatal error: SPI.h: No such file or directory

compilation terminated.

exit status 1
operator '==' has no left operand

Comments

  • Looks like a a lot of macros defined in Configuration.h are missing. So they are either deleted or commented out somehow.
Sign In or Register to comment.