Firmware compilation mile-long errors
Hi. I'm new to Repetier, and when I try to compile the firmware to write into my 3D printer (I have a custom board with Arduino Mega2560) I get a mile-long list of errors (the first few lines are:
"
In file included from sketch\HAL.h:90:0,
from sketch\Repetier.h:597,
from sketch\Endstops.cpp:24:
sketch\HAL.h: In static member function 'static void HAL::spiBegin(uint8_t)':
fastio.h:34:30: error: 'DIOMISO_PIN_DDR' was not declared in this scope
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
^
sketch\fastio.h:54:26: note: in expansion of macro '_SET_INPUT'
#define SET_INPUT(IO) _SET_INPUT(IO)
^~~~~~~~~~
sketch\HAL.h:622:9: note: in expansion of macro 'SET_INPUT'
SET_INPUT(MISO_PIN);
^~~~~~~~~
In file included from sketch\HAL.h:90:0,
from sketch\Repetier.h:597,
from sketch\Endstops.cpp:24:
fastio.h:34:58: error: 'DIOMISO_PIN_PIN' was not declared in this scope
#define _SET_INPUT(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:54:26: note: in expansion of macro '_SET_INPUT'
#define SET_INPUT(IO) _SET_INPUT(IO)
^~~~~~~~~~
from sketch\Repetier.h:597,
from sketch\Endstops.cpp:24:
sketch\HAL.h: In static member function 'static void HAL::spiBegin(uint8_t)':
fastio.h:34:30: error: 'DIOMISO_PIN_DDR' was not declared in this scope
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
^
sketch\fastio.h:54:26: note: in expansion of macro '_SET_INPUT'
#define SET_INPUT(IO) _SET_INPUT(IO)
^~~~~~~~~~
sketch\HAL.h:622:9: note: in expansion of macro 'SET_INPUT'
SET_INPUT(MISO_PIN);
^~~~~~~~~
In file included from sketch\HAL.h:90:0,
from sketch\Repetier.h:597,
from sketch\Endstops.cpp:24:
fastio.h:34:58: error: 'DIOMISO_PIN_PIN' was not declared in this scope
#define _SET_INPUT(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:54:26: note: in expansion of macro '_SET_INPUT'
#define SET_INPUT(IO) _SET_INPUT(IO)
^~~~~~~~~~
"
).
I can't seem to be able to attach a text file with the errors (the are about 36.000 lines of errors).Any help / idea is very much appreciated.
Thanks.
Comments
The problem seems that you do not define all pins for your custom board. Here for example
MISO_PIN is not defined to a number so using it in pin macros causes such errors. I guess at leats most other errors have same reason just maybe different pin names.