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

Solved So how do you comment on the Firmware??

Discussion in 'Troubleshooting' started by John in MS, Apr 18, 2018.

  1. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    I just got the LCD screen and installing it you need to change the firmware. I have had this Plus for 2 years and even went into the firmware before.

    I have downloaded version 2. Downloaded Audrinio and also put u8glib in the library

    Now the videos say i need to comment on some lines in the Firmware? So exactly how is that done? Either they record with the screem minimalized or i just can't see under this high noon Memphis sun what They are doing to the firmware

    Thanks in advance
     
  2. WheresWaldo

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    To turn a line into a comment, precede the line with a double slash. To uncomment a commented line remove the double slash.

    Example, this is a command
    Code:
    #define SOMETHING
    This is a command that has been turned into a comment
    Code:
    //#define SOMETHING
     
    Geof likes this.
  3. Geof

    Geof Volunteer Moderator
    Staff Member

    Joined:
    Nov 9, 2015
    Messages:
    6,757
    Likes Received:
    2,339
    comment out in the firmware? with 2 "//"

    so this is the line of code that works in marlin //everything past those two forward slashes is commented out not code

    if you need to comment out something just put those two slashes in front of the line like

    //so this is the line of code that works in marlin //everything past those two forward slashes is commented out not code
     
  4. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    Will try tonight thanks
     
    Geof likes this.
  5. Geof

    Geof Volunteer Moderator
    Staff Member

    Joined:
    Nov 9, 2015
    Messages:
    6,757
    Likes Received:
    2,339
    holler if you have problems, someone is always lurking (or will be lol)
     
  6. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    I tried this that I found on another thread:

    From their wiki:

    In "Configuration.h”
    1. Change “#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER” (just remove the // at the beginning)
    ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib


    I then got fpos_t as a error I then canged those to fatpost

    then I got the error curPosition_ = pos->position;

    I think I need to stick to spreadsheets and not code
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    Extract these two files into your source code directory and try again. I think you have an error with the changes needed for filepos_t
     

    Attached Files:

  8. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    Do you mean the library??
     
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    No, I mean extract the two files from that ZIP and over write the two of the same name in the Marlin source you edited.
    They have the correct fixes for the filepos_t
     
  10. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    That ZIP contains two files:

    SdBaseFile.cpp
    SdBaseFile.h


    Replace the two you have with those and compile again
     
  11. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    Ok I copy and past over the screen I am editing? Baby steps
     
  12. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    Close the arduino compiler
    use winzip or whatever you prefer to extract the two files from that ZIP file
    copy them into the directory where your Marlin source is that you are trying to compile
    overwrite the two already there
    Reopen the arduino compiler and compile again
     
  13. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    I am sitting in a parking lot waiting on my kid. well try when get home
     
  14. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    If you get errors copy over the exact error plz

    Compilers make Grammar Nazis look tame. They are total pedantic butt heads. :)
    ya miss one ';' and they get all up in yer biddness
     
    #14 mark tomlinson, Apr 18, 2018
    Last edited: Apr 18, 2018
  15. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    That worked. Tell Brandon at Robo you earned your salary tonight
     
  16. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    Yea, I don't work for Robo so ... I earned every penny :)
    Glad you got it going.
     
    Geof likes this.
  17. John in MS

    John in MS Active Member

    Joined:
    Oct 26, 2015
    Messages:
    188
    Likes Received:
    29
    Well it wasn't that easy.

    I was able to navigate the screen heated up the extruder and bed. Went inside to get the SD card and came back to find the screen frozen and unable to do anything. I then turned it off in the back and back on and got only the blue screen. I attempted to reload the firmware and still just blue screen
     
  18. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    If it was working at some point then sanity check the connectors. One may have gotten loose.
     

Share This Page