Welcome! Log In Create A New Profile

Advanced

Help with Arduino and Marlin

Posted by macsoft 
Help with Arduino and Marlin
June 05, 2015 06:48PM
I have and happily working i3 Prusa and she works almost every day.
Since I'm having a little more time, I thought I could try to revive my old Prusa I've built a few years back.
It has a RAMPS v1.2 and I'm having problems in the very first part: ARDUINO.

For starters I get the Marlin version I use on my Prusa i3, and upload it to my old printer with no errors.
Of course it does not work, because for one the RAMPs board is set for v1.4 I use on my i3.

So... I get into arduino and just simple change "#define MOTHERBOARD 33" to "#define MOTHERBOARD 3"

and.. the problems start... I get a bunch of compiling problems...
In fact, any little change I made on the firmware (just one character ) and I find this wall.
I tried several Arduino Versions with the same result.
Any help would be much appreciated.
Here is the error log:



Arduino: 1.6.2 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega1280"

dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:40: error: 'DIOBEEPER_WPORT' was not declared in this scope
#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)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:69: error: 'DIOBEEPER_PIN' was not declared in this scope
#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: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)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:97: error: 'DIOBEEPER_WPORT' was not declared in this scope
#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)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:127: error: 'DIOBEEPER_PIN' was not declared in this scope
#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: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)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:45:36: error: 'DIOBEEPER_RPORT' 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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:34:43: error: 'DIOBEEPER_WPORT' was not declared in this scope
{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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:34:72: error: 'DIOBEEPER_PIN' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:43: error: 'DIOBEEPER_WPORT' was not declared in this scope
{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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:73: error: 'DIOBEEPER_PIN' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:40: error: 'DIOBEEPER_WPORT' was not declared in this scope
#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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:69: error: 'DIOBEEPER_PIN' was not declared in this scope
#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: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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:97: error: 'DIOBEEPER_WPORT' was not declared in this scope
#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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:127: error: 'DIOBEEPER_PIN' was not declared in this scope
#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: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)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
ultralcd.cpp: In function 'void lcd_init()':
ultralcd.cpp:1141:13: error: 'BTN_EN1' was not declared in this scope
pinMode(BTN_EN1,INPUT);
^
ultralcd.cpp:1142:13: error: 'BTN_EN2' was not declared in this scope
pinMode(BTN_EN2,INPUT);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:45:36: error: 'DIOBTN_EN1_RPORT' 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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:34:43: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
{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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:34:72: error: 'DIOBTN_EN1_PIN' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:43: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
{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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:73: error: 'DIOBTN_EN1_PIN' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:40: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
#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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:69: error: 'DIOBTN_EN1_PIN' was not declared in this scope
#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: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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:97: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
#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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:127: error: 'DIOBTN_EN1_PIN' was not declared in this scope
#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: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)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:45:36: error: 'DIOBTN_EN2_RPORT' 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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:34:43: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
{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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:34:72: error: 'DIOBTN_EN2_PIN' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:43: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
{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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:73: error: 'DIOBTN_EN2_PIN' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:40: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
#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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:69: error: 'DIOBTN_EN2_PIN' was not declared in this scope
#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: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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:97: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
#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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:127: error: 'DIOBTN_EN2_PIN' was not declared in this scope
#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: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)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
ultralcd.cpp: In function 'void lcd_buttons_update()':
fastio.h:26:27: error: 'DIOBTN_EN1_RPORT' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1333:8: note: in expansion of macro 'READ'
if(READ(BTN_EN1)==0) newbutton|=EN_A;
^
fastio.h:26:54: error: 'DIOBTN_EN1_PIN' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1333:8: note: in expansion of macro 'READ'
if(READ(BTN_EN1)==0) newbutton|=EN_A;
^
fastio.h:26:27: error: 'DIOBTN_EN2_RPORT' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1334:8: note: in expansion of macro 'READ'
if(READ(BTN_EN2)==0) newbutton|=EN_B;
^
fastio.h:26:54: error: 'DIOBTN_EN2_PIN' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1334:8: note: in expansion of macro 'READ'
if(READ(BTN_EN2)==0) newbutton|=EN_B;
^
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Re: Help with Arduino and Marlin
June 05, 2015 07:17PM
Almost all those errors appear to be related to an LCD panel, which may not have been supported on the 1.2 . . . you might try undefining the LCD and seeing if that helps.

- Tim
Re: Help with Arduino and Marlin
June 06, 2015 04:11AM
There is no BEEPER defined.


Triffid Hunter's Calibration Guide --> X <-- Drill for new Monitor Most important Gcode.
Re: Help with Arduino and Marlin
June 06, 2015 09:05AM
But it compiled perfectly before I change 1 char?
Re: Help with Arduino and Marlin
June 06, 2015 12:29PM
Change it back? :-) :-)

It's amazing what dropping a single critical character can do in C family languages . . . especially comment delimiters and semicolons . . .

Seriously though, it looks like you have stuff defined that wasn't supported in the RAMPs 1.2 pins.h file, and you are hearing about it. Have you tried my suggestion of undefining your LCD? All the errors appear to be centered around the beeper/button/encoder on it . . .

- Tim

Edited 1 time(s). Last edit at 06/06/2015 12:32PM by tadawson.
Re: Help with Arduino and Marlin
June 06, 2015 05:50PM
Have you upgraded the Arduino software since you last compiled successfully?

I found problems with Arduino 1.6.4 - see [forums.reprap.org]

Might be worth reverting to an older version.

Hope this helps.

Richard
Re: Help with Arduino and Marlin
June 06, 2015 07:12PM
The problem only appears to affect the Windows Arduino kit - I have been on 1.6.3 forever, and now 1.6.4 on Linux (as have others) and everything works on all versions of Marlin . . .

- Tim
Re: Help with Arduino and Marlin
June 06, 2015 10:48PM
I'm on a Mac.. confused smiley
Re: Help with Arduino and Marlin
June 07, 2015 01:57AM
Well, it *IS* a *nix platform, so I would think it has more in common with Linux than Windows, but then again, with Apple's allergy to standards, who knows? Myself, I always try to stay current on tools, so try the 1.6.x stuff, debug, amnd only fall back if all else fails would be my plan . . .

- Tim
Re: Help with Arduino and Marlin
June 07, 2015 02:18AM
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:40: error: 'DIOBEEPER_WPORT' was not declared in this scope
#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)
^

The problem is here. There are some macros. One macro makes a conversion of BEEPER to it's port and pin. The DIOBEEPER_WPORT doesn't exist. Normally behind the BEEPER is a number. For example 10. Now it converts the BEEPER to 10 and the DIO10_WPORT can convert to PORTA. Just now should everything work.

The problem will stay on every Arduino version.


Triffid Hunter's Calibration Guide --> X <-- Drill for new Monitor Most important Gcode.
Sorry, only registered users may post in this forum.

Click here to login