Firmware Errors

Discussions about firmware/slicing software, tweaks and settings
Post Reply
Wombat32
Posts: 1
Joined: Wed Aug 24, 2016 5:05 am

Firmware Errors

Post by Wombat32 » Wed Aug 24, 2016 5:07 am

Can anyone tell me why I am getting these errors?

Arduino: 1.6.11 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch/HAL.h:77:0,
from sketch/Repetier.h:363,
from /Users/gcstaff/Desktop/3d Printer Files/20150210 - FIRMWARE - Repetier 0.922 - FELIX_3_0_DUAL_extrusion/Repetier-Firmware/Repetier/Repetier.ino:139:
pins.h:1591: error: pasting "/* PINB.3, 22, MISO*/" and "_DDR" does not give a valid preprocessing token
#define MISO_PIN 50 // PINB.3, 22, MISO
^
sketch/fastio.h:34:38: note: in definition of macro '_SET_INPUT'
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:590:9: note: in expansion of macro 'SET_INPUT'
SET_INPUT(MISO_PIN);
^
sketch/HAL.h:590:19: note: in expansion of macro 'MISO_PIN'
SET_INPUT(MISO_PIN);
^
pins.h:1591: error: pasting "/* PINB.3, 22, MISO*/" and "_PIN" does not give a valid preprocessing token
#define MISO_PIN 50 // PINB.3, 22, MISO
^
sketch/fastio.h:34:65: note: in definition of macro '_SET_INPUT'
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:590:9: note: in expansion of macro 'SET_INPUT'
SET_INPUT(MISO_PIN);
^
sketch/HAL.h:590:19: note: in expansion of macro 'MISO_PIN'
SET_INPUT(MISO_PIN);
^
pins.h:1592: error: pasting "/* PINB.2, 21, MOSI*/" and "_DDR" does not give a valid preprocessing token
#define MOSI_PIN 51 // PINB.2, 21, MOSI
^
sketch/fastio.h:36:39: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:591:9: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(MOSI_PIN);
^
sketch/HAL.h:591:20: note: in expansion of macro 'MOSI_PIN'
SET_OUTPUT(MOSI_PIN);
^
pins.h:1592: error: pasting "/* PINB.2, 21, MOSI*/" and "_PIN" does not give a valid preprocessing token
#define MOSI_PIN 51 // PINB.2, 21, MOSI
^
sketch/fastio.h:36:66: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:591:9: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(MOSI_PIN);
^
sketch/HAL.h:591:20: note: in expansion of macro 'MOSI_PIN'
SET_OUTPUT(MOSI_PIN);
^
pins.h:1590: error: pasting "/* PINB.1, 20, SCK*/" and "_DDR" does not give a valid preprocessing token
#define SCK_PIN 52 // PINB.1, 20, SCK
^
sketch/fastio.h:36:39: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:592:9: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(SCK_PIN);
^
sketch/HAL.h:592:20: note: in expansion of macro 'SCK_PIN'
SET_OUTPUT(SCK_PIN);
^
pins.h:1590: error: pasting "/* PINB.1, 20, SCK*/" and "_PIN" does not give a valid preprocessing token
#define SCK_PIN 52 // PINB.1, 20, SCK
^
sketch/fastio.h:36:66: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:592:9: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(SCK_PIN);
^
sketch/HAL.h:592:20: note: in expansion of macro 'SCK_PIN'
SET_OUTPUT(SCK_PIN);
^
pins.h:1592: error: pasting "/* PINB.2, 21, MOSI*/" and "_DDR" does not give a valid preprocessing token
#define MOSI_PIN 51 // PINB.2, 21, MOSI
^
sketch/fastio.h:36:39: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:612:9: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(MOSI_PIN);
^
sketch/HAL.h:612:20: note: in expansion of macro 'MOSI_PIN'
SET_OUTPUT(MOSI_PIN);
^
pins.h:1592: error: pasting "/* PINB.2, 21, MOSI*/" and "_PIN" does not give a valid preprocessing token
#define MOSI_PIN 51 // PINB.2, 21, MOSI
^
sketch/fastio.h:36:66: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:612:9: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(MOSI_PIN);
^
sketch/HAL.h:612:20: note: in expansion of macro 'MOSI_PIN'
SET_OUTPUT(MOSI_PIN);
^
pins.h:1591: error: pasting "/* PINB.3, 22, MISO*/" and "_DDR" does not give a valid preprocessing token
#define MISO_PIN 50 // PINB.3, 22, MISO
^
sketch/fastio.h:34:38: note: in definition of macro '_SET_INPUT'
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:613:9: note: in expansion of macro 'SET_INPUT'
SET_INPUT(MISO_PIN);
^
sketch/HAL.h:613:19: note: in expansion of macro 'MISO_PIN'
SET_INPUT(MISO_PIN);
^
pins.h:1591: error: pasting "/* PINB.3, 22, MISO*/" and "_PIN" does not give a valid preprocessing token
#define MISO_PIN 50 // PINB.3, 22, MISO
^
sketch/fastio.h:34:65: note: in definition of macro '_SET_INPUT'
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
^
sketch/HAL.h:613:9: note: in expansion of macro 'SET_INPUT'
SET_INPUT(MISO_PIN);
^
sketch/HAL.h:613:19: note: in expansion of macro 'MISO_PIN'
SET_INPUT(MISO_PIN);
^
exit status 1
pasting "/* PINB.3, 22, MISO*/" and "_DDR" does not give a valid preprocessing token

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


Thanks for your help,

User avatar
gfeliksdal
Site Admin
Posts: 400
Joined: Sat Feb 25, 2012 10:40 pm
Location: Netherlands
Contact:

Post by gfeliksdal » Thu Aug 25, 2016 12:32 pm

Hi,

Please use an older arduino version 1.6.5 works. Newer versions have issues compiling the firmware.

Post Reply