Compile errors

Hello,

i tried to use Repetier on a 2560 with RAMPS and a 2004 display.

I get a lot of errors if i try to compile the downloaded firmware. Due to the character limit i only show the first apperance. Most either say that something is redifined, others that something is not defined in scope. What can i do?


In file included from sketch\Repetier.h:546:0,
                 from sketch\BedLeveling.cpp:107:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
 #define SDCARDDETECT -1
 ^
In file included from sketch\Repetier.h:198:0,
                 from sketch\BedLeveling.cpp:107:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
 #define SDCARDDETECT ORIG_SDCARDDETECT
 ^
In file included from sketch\Repetier.h:546:0,
                 from sketch\Commands.cpp:22:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined
 #define SDCARDDETECT -1
 ^
In file included from sketch\Repetier.h:198:0,
                 from sketch\Commands.cpp:22:
sketch\Configuration.h:564:0: note: this is the location of the previous definition
 #define SDCARDDETECT ORIG_SDCARDDETECT
 ^
In file included from sketch\Repetier.h:546:0,
                 from sketch\Communication.cpp:22:
sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined

 #define SDCARDDETECT -1

 ^

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

                 from sketch\Communication.cpp:22:

sketch\Configuration.h:564:0: note: this is the location of the previous definition

 #define SDCARDDETECT ORIG_SDCARDDETECT

 ^

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

                 from sketch\Drivers.cpp:1:

sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined

 #define SDCARDDETECT -1

 ^

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

                 from sketch\Drivers.cpp:1:

sketch\Configuration.h:564:0: note: this is the location of the previous definition

 #define SDCARDDETECT ORIG_SDCARDDETECT

 ^

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

                 from sketch\Eeprom.cpp:24:

sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined

 #define SDCARDDETECT -1

 ^

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

                 from sketch\Eeprom.cpp:24:

sketch\Configuration.h:564:0: note: this is the location of the previous definition

 #define SDCARDDETECT ORIG_SDCARDDETECT

 ^

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

                 from sketch\Extruder.cpp:22:

sketch\ui.h:1423:0: warning: "SDCARDDETECT" redefined

 #define SDCARDDETECT -1

 ^

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

                 from sketch\Extruder.cpp:22:

sketch\Configuration.h:564:0: note: this is the location of the previous definition

 #define SDCARDDETECT ORIG_SDCARDDETECT

 ^

In file included from sketch\Extruder.cpp:22:0:

sketch\Repetier.h:512:215: warning: narrowing conversion of '-1' from 'int' to 'const uint8_t {aka const unsigned char}' inside { } [-Wnarrowing]

 #define  ANALOG_INPUT_CHANNELS {EXT0_ANALOG_CHANNEL EXT1_ANALOG_CHANNEL EXT2_ANALOG_CHANNEL EXT3_ANALOG_CHANNEL EXT4_ANALOG_CHANNEL EXT5_ANALOG_CHANNEL BED_ANALOG_CHANNEL THERMO_ANALOG_CHANNEL KEYPAD_ANALOG_CHANNEL}

                                                                                                                                                                                                                       ^

sketch\Extruder.cpp:44:47: note: in expansion of macro 'ANALOG_INPUT_CHANNELS'

 const uint8 osAnalogInputChannels[] PROGMEM = ANALOG_INPUT_CHANNELS;

                                               ^

In file included from sketch\HAL.h:83:0,

                 from sketch\Repetier.h:539,

                 from sketch\Extruder.cpp:22:

sketch\Extruder.cpp: In static member function 'static void Extruder::initExtruder()':

fastio.h:36: error: 'DIOORIG_E2_DIR_PIN_DDR' was not declared in this scope

 #define  _SET_OUTPUT(IO)  do {DIO ##  IO ## _DDR |=  MASK(DIO ## IO ## _PIN); } while (0)

                               ^

sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'

 #define  SET_OUTPUT(IO)  _SET_OUTPUT(IO)

                          ^

sketch\Extruder.cpp:523:5: note: in expansion of macro 'SET_OUTPUT'

     SET_OUTPUT(EXT2_DIR_PIN);

     ^

In file included from sketch\HAL.h:83:0,

                 from sketch\Repetier.h:539,

                 from sketch\Extruder.cpp:22:

fastio.h:36: error: 'DIOORIG_E2_DIR_PIN_PIN' was not declared in this scope

 #define  _SET_OUTPUT(IO)  do {DIO ##  IO ## _DDR |=  MASK(DIO ## IO ## _PIN); } while (0)

                                                           ^

sketch\fastio.h:17:30: note: in definition of macro 'MASK'

  #define  MASK(PIN)    (1 << PIN)

                              ^

sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'

 #define  SET_OUTPUT(IO)  _SET_OUTPUT(IO)

                          ^

sketch\Extruder.cpp:523:5: note: in expansion of macro 'SET_OUTPUT'

     SET_OUTPUT(EXT2_DIR_PIN);

     ^

In file included from sketch\HAL.h:83:0,

                 from sketch\Repetier.h:539,

                 from sketch\Extruder.cpp:22:

fastio.h:36: error: 'DIOORIG_E2_STEP_PIN_DDR' was not declared in this scope

 #define  _SET_OUTPUT(IO)  do {DIO ##  IO ## _DDR |=  MASK(DIO ## IO ## _PIN); } while (0)

                               ^

sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'

 #define  SET_OUTPUT(IO)  _SET_OUTPUT(IO)

                          ^

sketch\Extruder.cpp:524:5: note: in expansion of macro 'SET_OUTPUT'

     SET_OUTPUT(EXT2_STEP_PIN);

     ^

In file included from sketch\HAL.h:83:0,

                 from sketch\Repetier.h:539,

                 from sketch\Extruder.cpp:22:

fastio.h:36: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope

 #define  _SET_OUTPUT(IO)  do {DIO ##  IO ## _DDR |=  MASK(DIO ## IO ## _PIN); } while (0)

                                                           ^

sketch\fastio.h:17:30: note: in definition of macro 'MASK'

  #define  MASK(PIN)    (1 << PIN)

                              ^

sketch\fastio.h:56:26: note: in expansion of macro '_SET_OUTPUT'

 #define  SET_OUTPUT(IO)  _SET_OUTPUT(IO)

                          ^

sketch\Extruder.cpp:524:5: note: in expansion of macro 'SET_OUTPUT'

     SET_OUTPUT(EXT2_STEP_PIN);

     ^

sketch\Extruder.cpp: In static member function 'static void Extruder::step()':

fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_WPORT' was not declared in this scope

 #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                       ^

sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

 #define  WRITE(IO, v)   _WRITE(IO, v)

                         ^

sketch\Extruder.cpp:1311:9: note: in expansion of macro 'WRITE'

         WRITE(EXT2_STEP_PIN,START_STEP_WITH_HIGH);

         ^

fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope

 #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                    ^


        

Comments

  • sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1311:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                    ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1311:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                                                  ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)
                     ^

    sketch\Extruder.cpp:1311:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,START_STEP_WITH_HIGH);

             ^

    sketch\Extruder.cpp: In static member function 'static void Extruder::unstep()':

    fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                           ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1417:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                        ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1417:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                    ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1417:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    fastio.h:29: error: 'DIOORIG_E2_STEP_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                                                  ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1417:9: note: in expansion of macro 'WRITE'

             WRITE(EXT2_STEP_PIN,!START_STEP_WITH_HIGH);

             ^

    sketch\Extruder.cpp: In static member function 'static void Extruder::setDirection(uint8_t)':

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                           ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1555:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,!EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                        ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1555:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,!EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                    ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1555:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,!EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                                                  ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1555:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,!EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

       
  •                                     ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1560:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                        ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1560:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_WPORT' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                    ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1560:13: note: in expansion of macro 'WRITE'

                 WRITE(EXT2_DIR_PIN,EXT2_INVERSE);

                 ^

    fastio.h:29: error: 'DIOORIG_E2_DIR_PIN_PIN' was not declared in this scope

     #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)

                                                                                                                                  ^

    sketch\fastio.h:17:30: note: in definition of macro 'MASK'

      #define  MASK(PIN)    (1 << PIN)

                                  ^

    sketch\fastio.h:48:25: note: in expansion of macro '_WRITE'

     #define  WRITE(IO, v)   _WRITE(IO, v)

                             ^

    sketch\Extruder.cpp:1560:13: note: in expansion of macro 'WRITE'
                 WRITE(EXT2_DIR_PIN,EXT2_INVERSE);
                 ^
    In file included from sketch\Repetier.h:198:0,
                     from sketch\Extruder.cpp:22:
    sketch\Extruder.cpp: At global scope
    Configuration.h:171: error: 'ORIG_E2_ENABLE_PIN' was not declared in this scope
     #define EXT2_ENABLE_PIN ORIG_E2_ENABLE_PIN
                             ^
    sketch\Extruder.cpp:2577:71: note: in expansion of macro 'EXT2_ENABLE_PIN'
             2,EXT2_X_OFFSET,EXT2_Y_OFFSET,EXT2_Z_OFFSET,EXT2_STEPS_PER_MM,EXT2_ENABLE_PIN,EXT2_ENABLE_ON,
    Mehrere Bibliotheken wurden für "SPI.h" gefunden
     Benutzt: C:\Users\Wolfgang\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\libraries\SPI
     Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\SPI
    exit status 1
    'DIOORIG_E2_DIR_PIN_DDR' was not declared in this scope
  • ORIG_E2_DIR_PIN is 3rd extruder socket. RAMPS only has 0 and 1 so that one is not defined and using it creates your error. So select a existing socket to compile.
Sign In or Register to comment.