Issues setting up Marlin

New Home Forum Mostly Printed CNC – MPCNC Troubleshooting – MPCNC Issues setting up Marlin

This topic contains 25 replies, has 2 voices, and was last updated by Profile photo of Ryan Ryan 1 year, 2 months ago.

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #12598
    Profile photo of Kyle
    Kyle
    Participant

    Hey I followed the instruction best I could in your Marlin post downloaded the B16_32_fullG-112515 – Full graphic LCD firmware- file and input U8glib files into the library but when I verify i get this message.

    Arduino: 1.6.9 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

    In file included from sketch\ultralcd.cpp:5:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\dogm_lcd_implementation.h:39:0,

    from sketch\ultralcd.cpp:39:

    sketch\dogm_font_data_marlin.h:12:25: fatal error: utility/u8g.h: No such file or directory

    #include <utility/u8g.h>

    ^

    compilation terminated.

    exit status 1
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    Any Advice?

    #12622
    Profile photo of Ryan
    Ryan
    Keymaster

    It doesn’t seem to see your U8glib files. To verify this comment out the Full graphic lcd in the config tab. If it works that way you need to install the U8 stuff again. Are you using the lcd srceen?

    #12643
    Profile photo of Kyle
    Kyle
    Participant

    Sorry pretty new to playing with Arduino sketches I installed the U8glib files from within the Arduino IDE it says they are installed.

    Arduino: 1.6.9 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

    In file included from sketch\ConfigurationStore.cpp:65:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\Marlin_main.cpp:47:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    sketch\Marlin_main.cpp:2715:36: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]

    LCD_MESSAGEPGM(MACHINE_NAME” “MSG_OFF”.”);

    ^

    In file included from sketch\cardreader.cpp:6:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\planner.cpp:59:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\stepper.cpp:29:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\ultralcd.cpp:5:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\dogm_lcd_implementation.h:39:0,

    from sketch\ultralcd.cpp:39:

    sketch\dogm_font_data_marlin.h:12:25: fatal error: utility/u8g.h: No such file or directory

    #include <utility/u8g.h>

    ^

    compilation terminated.

    exit status 1
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    I just tried to start over re downloaded the file you posted for the LCD display made sure the U8glib file was installed and hit verify this is what i got.

    I do have the display from the kit you sell.

    #12648
    Profile photo of Ryan
    Ryan
    Keymaster

    Please try the firmware without the full graphic enabled so we can verify if that is really the problem.

    If you got it ll from me the full g firmware is pre flashed and you should not have to flash anything.

    #12650
    Profile photo of Kyle
    Kyle
    Participant

    Yeah the only issue is im trying to follow the Laser setup and it requires a line of code to be changed the the firmware so I’m trying to learn how the firmware stuff works so i can know how it works but also so i can edit it for the laser.

    #12652
    Profile photo of Kyle
    Kyle
    Participant

    So this is the message i got after verifying from the download without full graphics control.

    In file included from sketch\ConfigurationStore.cpp:65:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\Marlin_main.cpp:47:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    sketch\Marlin_main.cpp:2715:36: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]

    LCD_MESSAGEPGM(MACHINE_NAME” “MSG_OFF”.”);

    ^

    In file included from sketch\cardreader.cpp:6:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\planner.cpp:59:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\stepper.cpp:29:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\ultralcd.cpp:5:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    Sketch uses 102,448 bytes (40%) of program storage space. Maximum is 253,952 bytes.
    Global variables use 4,224 bytes (51%) of dynamic memory, leaving 3,968 bytes for local variables. Maximum is 8,192 bytes.

    #12653
    Profile photo of Ryan
    Ryan
    Keymaster

    I still suggest you try the non LCD one first. That way you aren’t trying to fix multiple problems at once, then try the laser edit, then try the LCD edit.

    #12655
    Profile photo of Ryan
    Ryan
    Keymaster

    Mac or PC?

    #12657
    Profile photo of Kyle
    Kyle
    Participant

    on PC i posted after i did the NON LCD version it looks like it did compile but there was still some errors? but it did tell me how much memory it would take up.

    #12658
    Profile photo of Ryan
    Ryan
    Keymaster

    Make sure to close arduino all the way and then launch it by double clicking on this file, B16_32-LCD-112515.

    I can’t replicate your error.

    If you just hit verify, not upload does it work?

    #12659
    Profile photo of Kyle
    Kyle
    Participant

    I have not hit upload yet. iv only hit verify and that’s the message i am getting. when i download the Zip file should i be unzipping it in a specific folder?

    #12662
    Profile photo of Ryan
    Ryan
    Keymaster

    The folder has to be named the same name as the name of the file, B16_32-LCD-112515. I tried changing all kinds of settings and I can’t make it fail.

    You are getting tons of tabs across the top of arduino when its open correct, like my screen shots?

    #12663
    Profile photo of Kyle
    Kyle
    Participant

    So just to find out if im missing something. I download the Arduino 1.6.9. then i downloaded your NON LCD FILE and extracted it to a new folder on my desktop open up the file and open the file named B16_32-LCD-112515.ino which opened up the Arduino interface with a bunch of tabs i then hit Verify and this is what i get when i finished compiling.

    In file included from sketch\ConfigurationStore.cpp:65:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\Marlin_main.cpp:47:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    sketch\Marlin_main.cpp:2715:36: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]

    LCD_MESSAGEPGM(MACHINE_NAME” “MSG_OFF”.”);

    ^

    In file included from sketch\cardreader.cpp:6:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\planner.cpp:59:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\stepper.cpp:29:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\ultralcd.cpp:5:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    Sketch uses 102,448 bytes (40%) of program storage space. Maximum is 253,952 bytes.
    Global variables use 4,224 bytes (51%) of dynamic memory, leaving 3,968 bytes for local variables. Maximum is 8,192 bytes.

    #12664
    Profile photo of Kyle
    Kyle
    Participant

    Screenshot

    Attachments:
    #12666
    Profile photo of Ryan
    Ryan
    Keymaster

    get rid of your u8glib, I think you got the wrong one. I did a google search and the vicious1.com forums popped up….apparently this has happened before. There is a bad u8glib file out there.

    Delete it restart Arduino verify it is gone and try to flash again.

    #12667
    Profile photo of Kyle
    Kyle
    Participant

    Hmmm I left the Arduino IDE open for a lil bit as i looked through the files to try and figure out what was wrong and I got a notification that my arduino libraries had updated and there were changes so i hit compile right after that and it worked with no issues.

    #12668
    Profile photo of Kyle
    Kyle
    Participant

    So now I have to see if I can get it to work with the full Graphics file

    #12669
    Profile photo of Kyle
    Kyle
    Participant

    I still get this error when trying to use the full Graphic download. Arduino: 1.6.9 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

    In file included from sketch\ultralcd.cpp:5:0:

    sketch\language.h:65:0: warning: “MACHINE_NAME” redefined [enabled by default]

    #define MACHINE_NAME CUSTOM_MENDEL_NAME

    ^

    sketch\language.h:61:0: note: this is the location of the previous definition

    #define MACHINE_NAME “Mendel”

    ^

    In file included from sketch\dogm_lcd_implementation.h:39:0,

    from sketch\ultralcd.cpp:39:

    sketch\dogm_font_data_marlin.h:12:25: fatal error: utility/u8g.h: No such file or directory

    #include <utility/u8g.h>

    ^

    compilation terminated.

    exit status 1
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    #12672
    Profile photo of Ryan
    Ryan
    Keymaster

    So did you get rid of that library and download the right one, from my link?

    #12673
    Profile photo of Ryan
    Ryan
    Keymaster

    Or you can follow the link that is in the config.h file

    #12675
    Profile photo of Kyle
    Kyle
    Participant

    Im not sure how to remove it. 🙁 and when i download it from your link where do i put it? sorry for the noob questions.

    #12676
    Profile photo of Kyle
    Kyle
    Participant

    I installed the U8glib by oliver from the arduino Library manager there are 2 version there 1.19.1 and 1.18.0.

    #12678
    Profile photo of Ryan
    Ryan
    Keymaster

    close arduino and delete the folder in the arduino library. For me it is in my documents. You can google, delete arduino library if you can’t find it. To install it you do that from inside arduino or do it manually, http://www.instructables.com/id/How-to-install-Libraries-in-arduino/.

    #12679
    Profile photo of Ryan
    Ryan
    Keymaster

    http://code.google.com/p/u8glib/wiki/u8glib

    Link is found inside configuration.h

    #12681
    Profile photo of Kyle
    Kyle
    Participant

    Sweet that worked!

    Sorry for how complicated that was >.>

    and thanks for your time and patience

    #12682
    Profile photo of Ryan
    Ryan
    Keymaster

    Just glad your up and running!

Viewing 26 posts - 1 through 26 (of 26 total)

You must be logged in to reply to this topic.