I tried to verify a marlin 1.1.8 firmware in Arduino Create and i got this error.
I then tried to verify the exact same sketch on the Arduino IDE and didn't get any errors.
Is there a reason this happens only on the Arduino Create? If necessary I don't mind uploading the sketch. Below is the error message
./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/849544824/build -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -libraries /tmp/849544824/pinned -libraries /tmp/849544824/custom -fqbn arduino:avr:mega:cpu=atmega2560 -build-cache /tmp -logger humantags -verbose=false /tmp/849544824/Tornado
In file included from /tmp/849544824/build/sketch/MarlinConfig.h:26:0,
from /tmp/849544824/build/sketch/Sd2Card.cpp:29:
/tmp/849544824/build/sketch/Sd2Card.h:100:39: error: pasting "/* SPI Master In Slave Out pin*/" and "_DDR" does not give a valid preprocessing token
#define SPI_MISO_PIN MISO_PIN // SPI Master In Slave Out pin
^
/tmp/849544824/build/sketch/fastio.h:94:35: note: in definition of macro '_SET_INPUT'
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~_BV(DIO ## IO ## _PIN); } while (0)
^
/tmp/849544824/build/sketch/Sd2Card.cpp:316:3: note: in expansion of macro 'SET_INPUT'
SET_INPUT(SPI_MISO_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.cpp:316:13: note: in expansion of macro 'SPI_MISO_PIN'
SET_INPUT(SPI_MISO_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.h:100:39: error: pasting "/* SPI Master In Slave Out pin*/" and "_PIN" does not give a valid preprocessing token
#define SPI_MISO_PIN MISO_PIN // SPI Master In Slave Out pin
^
/tmp/849544824/build/sketch/fastio.h:94:61: note: in definition of macro '_SET_INPUT'
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~_BV(DIO ## IO ## _PIN); } while (0)
^
/tmp/849544824/build/sketch/Sd2Card.cpp:316:3: note: in expansion of macro 'SET_INPUT'
SET_INPUT(SPI_MISO_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.cpp:316:13: note: in expansion of macro 'SPI_MISO_PIN'
SET_INPUT(SPI_MISO_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.h:99:39: error: pasting "/* SPI Master Out Slave In pin*/" and "_DDR" does not give a valid preprocessing token
#define SPI_MOSI_PIN MOSI_PIN // SPI Master Out Slave In pin
^
/tmp/849544824/build/sketch/fastio.h:95:36: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= _BV(DIO ## IO ## _PIN); } while (0)
^
/tmp/849544824/build/sketch/Sd2Card.cpp:317:3: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(SPI_MOSI_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.cpp:317:14: note: in expansion of macro 'SPI_MOSI_PIN'
SET_OUTPUT(SPI_MOSI_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.h:99:39: error: pasting "/* SPI Master Out Slave In pin*/" and "_PIN" does not give a valid preprocessing token
#define SPI_MOSI_PIN MOSI_PIN // SPI Master Out Slave In pin
^
/tmp/849544824/build/sketch/fastio.h:95:61: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= _BV(DIO ## IO ## _PIN); } while (0)
^
/tmp/849544824/build/sketch/Sd2Card.cpp:317:3: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(SPI_MOSI_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.cpp:317:14: note: in expansion of macro 'SPI_MOSI_PIN'
SET_OUTPUT(SPI_MOSI_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.h:101:39: error: pasting "/* SPI Clock pin*/" and "_DDR" does not give a valid preprocessing token
#define SPI_SCK_PIN SCK_PIN // SPI Clock pin
^
/tmp/849544824/build/sketch/fastio.h:95:36: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= _BV(DIO ## IO ## _PIN); } while (0)
^
/tmp/849544824/build/sketch/Sd2Card.cpp:318:3: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(SPI_SCK_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.cpp:318:14: note: in expansion of macro 'SPI_SCK_PIN'
SET_OUTPUT(SPI_SCK_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.h:101:39: error: pasting "/* SPI Clock pin*/" and "_PIN" does not give a valid preprocessing token
#define SPI_SCK_PIN SCK_PIN // SPI Clock pin
^
/tmp/849544824/build/sketch/fastio.h:95:61: note: in definition of macro '_SET_OUTPUT'
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= _BV(DIO ## IO ## _PIN); } while (0)
^
/tmp/849544824/build/sketch/Sd2Card.cpp:318:3: note: in expansion of macro 'SET_OUTPUT'
SET_OUTPUT(SPI_SCK_PIN);
^
/tmp/849544824/build/sketch/Sd2Card.cpp:318:14: note: in expansion of macro 'SPI_SCK_PIN'
SET_OUTPUT(SPI_SCK_PIN);
^
exit status 1