1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Marlin for the R2 - UBL Enabled

Discussion in 'Mods and Upgrades' started by WheresWaldo, Sep 8, 2017.

?

Would you like to see U.B.L. enabled for the R2?

  1. Of course!

    20 vote(s)
    95.2%
  2. Not really.

    0 vote(s)
    0.0%
  3. Why are you wasting your time with this?

    1 vote(s)
    4.8%
  1. sgomes

    sgomes Active Member

    Joined:
    Dec 29, 2016
    Messages:
    136
    Likes Received:
    55
    Oh, I think I figured it out. The gcode.cpp and gcode.h files shouldn't be there anymore, since they were renamed to parser.cpp and parser.h in a previous version of Marlin. Removing them makes it compile correctly. :)
     
    mark tomlinson likes this.
  2. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,806
    Likes Received:
    3,521
    Glad you figured it out
     
    sgomes likes this.
  3. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    117
    Likes Received:
    22
    I am attempting this on a MKS GEN 1.4. I changed the board to

    Code:
    // The following define selects which electronics board you have.
    // Please choose the name from boards.h that matches your setup
    #ifndef MOTHERBOARD
      #define BOARD_MKS_13  // [MKS GEN 1.4]
    #endif
    I am getting this error:
    boards.h:150:46: error: operator '==' has no right operand
    #define MB(board) (MOTHERBOARD==BOARD_##board)
    ^
    sketch\pins.h:106:7: note: in expansion of macro 'MB'
    #elif MB(MKS_13)
    ^
    exit status 1
    operator '==' has no right operand

    Have I defined the board improperly?
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    21,138
    Likes Received:
    6,997
  5. Gary Boyce

    Gary Boyce Member

    Joined:
    Feb 26, 2016
    Messages:
    117
    Likes Received:
    22
    The problem was that I defined the board as
    Code:
    // The following define selects which electronics board you have.
    // Please choose the name from boards.h that matches your setup
    #ifndef MOTHERBOARD
      #define BOARD_MKS_13  // [MKS GEN 1.4]
    #endif
    instead of

    Code:
    // The following define selects which electronics board you have.
    // Please choose the name from boards.h that matches your setup
    #ifndef MOTHERBOARD
      #define MKS_13  // [robo]
    #endif
    After changing to MKS_13 from BOARD_MKS_13 it compiles.
    Thanks for pointing me in the right direction.
     
  6. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    21,138
    Likes Received:
    6,997
    Compilers are really pedantic :)
     
    supercazzola likes this.
  7. Lance Weston

    Lance Weston Member

    Joined:
    Jun 2, 2018
    Messages:
    85
    Likes Received:
    22
    Robos labeling is just wrong, the actual pins are correct.
     
    supercazzola likes this.
  8. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,806
    Likes Received:
    3,521
    I have no idea, which earthly message you are quoting.
     
    supercazzola likes this.

Share This Page