Install

Having a problem? Post it here and someone will be along shortly to help
Post Reply
TwoTone
Printmaster!
Posts: 144
Joined: Tue Jun 14, 2016 6:36 pm

Install

Post 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.
Mac The Knife
ULTIMATE 3D JEDI
Posts: 1407
Joined: Sun May 11, 2014 6:18 pm

Re: Install

Post 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.
R-Max V2
Eris
Folger Tech FT-5 R2
TwoTone
Printmaster!
Posts: 144
Joined: Tue Jun 14, 2016 6:36 pm

Re: Install

Post by TwoTone »

Thanks. That worked, printing the PEEK shroud now.
Eric
Printmaster!
Posts: 717
Joined: Sat Aug 18, 2012 4:09 am
Location: Chula Vista, CA

Re: Install

Post 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
geneb
ULTIMATE 3D JEDI
Posts: 5358
Joined: Mon Oct 15, 2012 12:47 pm
Location: Graham, WA
Contact:

Re: Install

Post 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.
Delta Power!
Defeat the Cartesian Agenda!
http://www.f15sim.com - 80-0007, The only one of its kind.
http://geneb.simpits.org - Technical and Simulator Projects
Post Reply

Return to “Troubleshooting”