Page 1 of 1

Install

Posted: Sun Jul 24, 2016 4:09 pm
by TwoTone
So we are trying to upload the Repetier-Firmware and getting the following error, any help would be greatly appreciated.

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\HAL.h:77:0,
from sketch\Repetier.h:353,
from C:\RoStock drivers\FirmWare\Firmware-master\Repetier Firmware\Repetier\Repetier.ino:143:

Configuration.h:614: error: pasting "/* mini-rambo ext pins on P3 ext next to LCD header*/" and "_RPORT" does not give a valid preprocessing token

#define Z_PROBE_PIN 16 // mini-rambo ext pins on P3 ext next to LCD header

^

sketch\fastio.h:27:39: note: in definition of macro '_READ'

#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))

^

sketch\Printer.h:642:35: note: in expansion of macro 'READ'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

sketch\Printer.h:642:40: note: in expansion of macro 'Z_PROBE_PIN'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

Configuration.h:614: error: pasting "/* mini-rambo ext pins on P3 ext next to LCD header*/" and "_PIN" does not give a valid preprocessing token

#define Z_PROBE_PIN 16 // mini-rambo ext pins on P3 ext next to LCD header

^

sketch\fastio.h:27:66: note: in definition of macro '_READ'

#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))

^

sketch\Printer.h:642:35: note: in expansion of macro 'READ'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

sketch\Printer.h:642:40: note: in expansion of macro 'Z_PROBE_PIN'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

Configuration.h:614: error: pasting "/* mini-rambo ext pins on P3 ext next to LCD header*/" and "_RPORT" does not give a valid preprocessing token

#define Z_PROBE_PIN 16 // mini-rambo ext pins on P3 ext next to LCD header

^

sketch\fastio.h:27:39: note: in definition of macro '_READ'

#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))

^

sketch\Printer.h:642:56: note: in expansion of macro 'READ'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

sketch\Printer.h:642:61: note: in expansion of macro 'Z_PROBE_PIN'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

Configuration.h:614: error: pasting "/* mini-rambo ext pins on P3 ext next to LCD header*/" and "_PIN" does not give a valid preprocessing token

#define Z_PROBE_PIN 16 // mini-rambo ext pins on P3 ext next to LCD header

^

sketch\fastio.h:27:66: note: in definition of macro '_READ'

#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))

^

sketch\Printer.h:642:56: note: in expansion of macro 'READ'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

sketch\Printer.h:642:61: note: in expansion of macro 'Z_PROBE_PIN'

return (Z_PROBE_ON_HIGH ? READ(Z_PROBE_PIN) : !READ(Z_PROBE_PIN));

^

exit status 1
pasting "/* mini-rambo ext pins on P3 ext next to LCD header*/" and "_RPORT" does not give a valid preprocessing token

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: Install

Posted: Sun Jul 24, 2016 4:23 pm
by Mac The Knife
Someone in the Eris forums had posted that the newest version of Arduino wasn't playing nice,,, So I've been using version 1.0.2 with no problems.

Re: Install

Posted: Sun Jul 24, 2016 7:34 pm
by TwoTone
Thanks. That worked, printing the PEEK shroud now.

Re: Install

Posted: Sun Jul 24, 2016 9:16 pm
by Eric
As I said in the Eris thread:
Eric wrote:Proably a stringanization issue in the layered preprocessor macros that translate the pin number into register macros (see fastio.h for the magic in this case).

While 99% of the time you can get away with comments on the same line as a #define, it's better practice to put the comment on its own line before it, especially if you're writing portable code. This is one of those things that not every preprocessor handles the same way when things get complicated.
There was a change in the arduino preprocessor in the last versions, and it's probably not going to be changed back. So that leaves moving the comments as the permanent fix to keep this from happening to people. Brent submitted the fix for this a couple months ago, but it hasn't actually been pulled into the code yet: https://github.com/seemecnc/eris_delta/pull/5

Re: Install

Posted: Mon Jul 25, 2016 10:51 am
by geneb
Note that the firmware linked in the user guide and on the SeeMeCNC website builds fine under 1.6.9. If memory serves, it's http://github.com/seemecnc/firmware (or similar). It's based on Repetier Host 0.93.

g.