Announcement

Collapse
No announcement yet.

Marlin firmware error compiling message.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Marlin firmware error compiling message.

    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;


    #2
    Start with a build which does compile and make your changes one at a time, that's the way I went and I found my problem was multiple exclamation marks in comments in sections I had cut and pasted from a downloaded config file, lord knows why anyone saw the need for multiple exclamation marks, one will do!

    - Nick

    Comment


      #3
      Hi 'magicniner',

      I am wondering where you found a compiling error free" build of Marlin.

      I have the same error message as Brandon and I am at that same step since a while.

      Thanks.

      Markus

      Comment

      Sign Up

      Collapse

      To post a reply to this thread you must be a member. Registration is fast, simple and absolutely free. Please join our community today!
      Working...
      X