Compile error - Probe Pin?

I am new to all this and it's a bit overwhelming.  I used the configurator for a kossel/ delta printer.  But it hangs on compiling in Arduino.  If i press upload again, it generates this message.  Any help would be appreciated
++++++

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all

Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI 



C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Commands.cpp -o C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Commands.cpp.o 

In file included from C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\HAL.h:77:0,
                 from C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Repetier.h:264,
                 from C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Commands.cpp:22:
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:32: error: pasting "DIO" and "-" does not give a valid preprocessing token
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:35: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                   ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Configuration.h:294:22: error: invalid suffix "_RPORT" on integer constant
 #define Z_PROBE_PIN -1
                      ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:39: note: in definition of macro '_READ'
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:35: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                   ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:40: note: in expansion of macro 'Z_PROBE_PIN'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                        ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:59: error: pasting "DIO" and "-" does not give a valid preprocessing token
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                                           ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:35: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                   ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Configuration.h:294:22: error: invalid suffix "_PIN" on integer constant
 #define Z_PROBE_PIN -1
                      ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:17:30: note: in definition of macro 'MASK'
  #define  MASK(PIN)    (1 << PIN)
                              ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:35: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                   ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:40: note: in expansion of macro 'Z_PROBE_PIN'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                        ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:32: error: pasting "DIO" and "-" does not give a valid preprocessing token
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:56: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                                        ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Configuration.h:294:22: error: invalid suffix "_RPORT" on integer constant
 #define Z_PROBE_PIN -1
                      ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:39: note: in definition of macro '_READ'
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:56: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                                        ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:61: note: in expansion of macro 'Z_PROBE_PIN'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                                             ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:59: error: pasting "DIO" and "-" does not give a valid preprocessing token
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                                           ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:56: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                                        ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Configuration.h:294:22: error: invalid suffix "_PIN" on integer constant
 #define Z_PROBE_PIN -1
                      ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:17:30: note: in definition of macro 'MASK'
  #define  MASK(PIN)    (1 << PIN)
                              ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:56: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                                        ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:61: note: in expansion of macro 'Z_PROBE_PIN'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                                             ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h: In static member function 'static bool Printer::isZProbeHit()':
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:27:32: error: 'DIO' was not declared in this scope
 #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
                                ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\fastio.h:46:23: note: in expansion of macro '_READ'
 #define  READ(IO)     _READ(IO)
                       ^
C:\Users\John\AppData\Local\Temp\build946602977428645883.tmp\Printer.h:487:35: note: in expansion of macro 'READ'
         return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));
                                   ^
Error compiling.

Comments

  • I guess you have not set

    Z_PROBE_ON_HIGH to 0 or 1. Maybe also Z_PROBE_PIN is not set to a valid pin number or -1. If it is -1 you have to disable zprobe feature to prevent errors.
Sign In or Register to comment.