Welcome! Log In Create A New Profile

Advanced

Trouble with Firmware error when compiling- starting out building a new machine

Posted by kevincnc 
Hi all, this is my first post. I'm building a fairly large machine with a RAMPS board. The mechanics and electronics are no problem (yet,) but I've never used or programmed an Arduino. I'm following the Marlin firmware setup instructions on the Wiki, but as soon as I change from 1 to 2 extruders I get this error when compiling-

Arduino: 1.6.4 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

temperature.cpp: In function 'void manage_heater()':
temperature.cpp:665: error: unable to find a register to spill in class 'POINTER_REGS'
}
^
temperature.cpp:665: error: this is the insn:
(insn 98 97 100 4 (set (reg/vconfused smileyF 103 [ pid_input ])
(memconfused smileyF (post_inc:HI (reg:HI 141 [ ivtmp.168 ])) [4 MEM[base: _101, offset: 0B]+0 S4 A8])) temperature.cpp:449 99 {*movsf}
(expr_list:REG_INC (reg:HI 141 [ ivtmp.168 ])
(nil)))
temperature.cpp:665: confused by earlier errors, bailing out
unable to find a register to spill in class 'POINTER_REGS'

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

I tried to search but there is so much info out there, I'm still a little overwhelmed. Any advice would be appreciated.
Kevin

Edited 1 time(s). Last edit at 05/19/2015 04:45PM by kevincnc.
Attachments:
open | download - 3D Printer.JPG (379.1 KB)
open | download - DSC_0078.JPG (282.5 KB)
This is the error I get when I set #define EXTRUDERS 2





Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

fastio.h:34: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
fastio.h:39: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:39:51: note: in definition of macro '_WRITE_C'
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:39: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:30:48: note: in definition of macro '_WRITE_NC'
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:30:105: note: in definition of macro '_WRITE_NC'
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1270:58: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
fastio.h:45: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_RPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:45:44: note: in definition of macro '_WRITE'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:34: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:34:51: note: in definition of macro '_WRITE_C'
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:34: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
fastio.h:39: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:39:51: note: in definition of macro '_WRITE_C'
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:39: error: pasting "DIO" and "-" does not give a valid preprocessing token
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:30:48: note: in definition of macro '_WRITE_NC'
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_WPORT" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:30:105: note: in definition of macro '_WRITE_NC'
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
fastio.h:30: error: pasting "DIO" and "-" does not give a valid preprocessing token
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pins.h:687: error: invalid suffix "_PIN" on integer constant
#define HEATER_1_PIN -1
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
temperature.cpp:1292:36: note: in expansion of macro 'HEATER_1_PIN'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
In file included from Marlin.h:21:0,
from temperature.cpp:32:
temperature.cpp: In function 'void __vector_22()':
fastio.h:45: error: 'DIO' was not declared in this scope
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:24: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:45: error: 'DIO' was not declared in this scope
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1270:52: note: in expansion of macro 'WRITE'
if(soft_pwm_1 > 0) WRITE(HEATER_1_PIN,1); else WRITE(HEATER_1_PIN,0);
^
fastio.h:45: error: 'DIO' was not declared in this scope
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
temperature.cpp:1292:30: note: in expansion of macro 'WRITE'
if(soft_pwm_1 < pwm_count) WRITE(HEATER_1_PIN,0);
^
pasting "DIO" and "-" does not give a valid preprocessing token

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
On another forum I was told that this is a compiler error
Sorry, only registered users may post in this forum.

Click here to login