Hi, i'm relatively new to 3d printing, well, really new. I've had my Flsun Kossel Delta linear version for about 1 1/2 weeks and it's all built just great. I've learned as much about the Marlin Firmware that I can on my own but i'm running into a constant Error message. I copied the message to a text editor and then copied that and that's what i'm about to post. If anyone can give me an idea on what this error is and how to go about fixing it i'd be greatly appreciative. Also if my lingo is off i apologize ahead of time b/c i'm just a hobbyist trying to learn this stuff..
Arduino: 1.6.1 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from Marlin.h:37:0,
from cardreader.cpp:1:
MarlinSerial.h: In member function 'int MarlinSerial::available()':
MarlinSerial.h:100:46: error: 'rx_buffer' was not declared in this scope
return (unsigned int)(RX_BUFFER_SIZE + rx_buffer.head - rx_buffer.tail) % RX_BUFFER_SIZE;
^
MarlinSerial.h: In member function 'void MarlinSerial::write(uint8_t)':
MarlinSerial.h:46:33: error: 'UCSR4A' was not declared in this scope
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:46:18: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:105:17: note: in expansion of macro 'M_UCSRxA'
while (!((M_UCSRxA) & (1 << M_UDREx)))
^
MarlinSerial.h:51:32: error: 'UDRE4' was not declared in this scope
#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:51:17: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)
^
MarlinSerial.h:105:35: note: in expansion of macro 'M_UDREx'
while (!((M_UCSRxA) & (1 << M_UDREx)))
^
MarlinSerial.h:52:31: error: 'UDR4' was not declared in this scope
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:52:16: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:108:7: note: in expansion of macro 'M_UDRx'
M_UDRx = c;
^
MarlinSerial.h: In member function 'void MarlinSerial::checkRx()':
MarlinSerial.h:46:33: error: 'UCSR4A' was not declared in this scope
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:46:18: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:114:11: note: in expansion of macro 'M_UCSRxA'
if((M_UCSRxA & (1<<M_RXCx)) != 0) {
^
MarlinSerial.h:55:31: error: 'RXC4' was not declared in this scope
#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:55:16: note: in expansion of macro 'SERIAL_REGNAME'
#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)
^
MarlinSerial.h:114:26: note: in expansion of macro 'M_RXCx'
if((M_UCSRxA & (1<<M_RXCx)) != 0) {
^
MarlinSerial.h:52:31: error: 'UDR4' was not declared in this scope
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:52:16: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:115:29: note: in expansion of macro 'M_UDRx'
unsigned char c = M_UDRx;
^
MarlinSerial.h:116:32: error: 'rx_buffer' was not declared in this scope
int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
Arduino: 1.6.1 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from Marlin.h:37:0,
from cardreader.cpp:1:
MarlinSerial.h: In member function 'int MarlinSerial::available()':
MarlinSerial.h:100:46: error: 'rx_buffer' was not declared in this scope
return (unsigned int)(RX_BUFFER_SIZE + rx_buffer.head - rx_buffer.tail) % RX_BUFFER_SIZE;
^
MarlinSerial.h: In member function 'void MarlinSerial::write(uint8_t)':
MarlinSerial.h:46:33: error: 'UCSR4A' was not declared in this scope
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:46:18: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:105:17: note: in expansion of macro 'M_UCSRxA'
while (!((M_UCSRxA) & (1 << M_UDREx)))
^
MarlinSerial.h:51:32: error: 'UDRE4' was not declared in this scope
#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:51:17: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)
^
MarlinSerial.h:105:35: note: in expansion of macro 'M_UDREx'
while (!((M_UCSRxA) & (1 << M_UDREx)))
^
MarlinSerial.h:52:31: error: 'UDR4' was not declared in this scope
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:52:16: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:108:7: note: in expansion of macro 'M_UDRx'
M_UDRx = c;
^
MarlinSerial.h: In member function 'void MarlinSerial::checkRx()':
MarlinSerial.h:46:33: error: 'UCSR4A' was not declared in this scope
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:46:18: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:114:11: note: in expansion of macro 'M_UCSRxA'
if((M_UCSRxA & (1<<M_RXCx)) != 0) {
^
MarlinSerial.h:55:31: error: 'RXC4' was not declared in this scope
#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:55:16: note: in expansion of macro 'SERIAL_REGNAME'
#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)
^
MarlinSerial.h:114:26: note: in expansion of macro 'M_RXCx'
if((M_UCSRxA & (1<<M_RXCx)) != 0) {
^
MarlinSerial.h:52:31: error: 'UDR4' was not declared in this scope
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix ) registerbase##number##suffix
^
MarlinSerial.h:52:16: note: in expansion of macro 'SERIAL_REGNAME'
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:115:29: note: in expansion of macro 'M_UDRx'
unsigned char c = M_UDRx;
^
MarlinSerial.h:116:32: error: 'rx_buffer' was not declared in this scope
int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
Comment