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

Solved software update problems

Discussion in 'Troubleshooting' started by Jesse Koering, Jun 4, 2017.

Thread Status:
Not open for further replies.
  1. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    Hello everyone,
    So, slight re-cap : got a full display xl smart lcd for my printer off a recommendation. I watched several videos on install and updating firm wear for it to make it work. Found out how to install it. First command I tried was Auto home. printer darted around then continued to try to dig a hole threw my bed to China with the extruder, I was able to turn it off in time. Made a stiff drink and decided to retry it with software form Robo.
    Now for the current problem. With the current firmware from the site, all I have changed is taking away the "//" for my screen to work. What else do I need to do before reloading into my printer. Also when I just clicked on the compile button it threw up - (code fallowing then the segments it highlighted at the same time.)
    exit status 1
    using typedef-name 'fpos_t' after 'struct'

    -

    struct fpos_t {
    /** stream position */
    uint32_t position;
    /** cluster for position */
    uint32_t cluster;
    fpos_t() : position(0), cluster(0) {}
    };

    any help would be appreciated, pic of full page will fallow.

    Thank you,
    Jesse
     

    Attached Files:

    #1 Jesse Koering, Jun 4, 2017
    Last edited: Jun 4, 2017
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    This is actually an Arduino compiler introduced issue. The compiler that the older marlin was built with for the R1 series was much older and allowed some incorrect code. Or you could say that the newer versions are more strict on the compiler syntax. Either way it is an easy tweak to the code to get it compiling in the more current versions of the compiler.


    So in the arduino IDE with Marlin project loaded do a global search and replace of fpos_t to filepos_t and you should be fine.

    (most of them should be in SdBaseFile.h)
     
    Jesse Koering likes this.
  4. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    Thank you for always reponding quick,
    now I have fixed the filepost part, now it is throwing and error the the line beneith it for -
    uint32_t position;

    I am gonna keep looking on the site you sent for the first fix after i get back from work, but right now there isnt anything I found..
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Post the exact error. You must have a typo
     
  6. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    exit status 1
    expected initializer before 'position'

    This is the full error above what the line it highlighted.
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    That is only the error, not the lines :)
    You have a syntax error in there somewhere. post the problematic file and we can look at it, but with the tiny snippets of information you are providing I can't really be any more specific.
     
  8. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    Sounds good, when I get home tonight I shall. Thanks

    Sent from my SM-G930V using Tapatalk
     
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Easier yet, here are the two I edited. They should be drop-ins for you.

    SDBaseFile.h
    SDBaseFile.cpp

    are in the ZIP
     

    Attached Files:

  10. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    So I downloaded the files, am I so post to just copy and paste into the file for my printer? or do i replace the same file name in the firmware i downloaded off of Robo's site?
    again sorry for being such a nube at this.
     
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Whichever way you go it is fine.
    Those two files have the corrections to allow the code to compile in the more recent compiler -- use your OWN CONFIGURATION.H files since that is where all of the customization's specific to the printer are.
     
    Geof likes this.
  12. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    yes I left that the same, with the exemption of allowing my lcd to work. I replaced the files in the actual folder it self. it compiled correctly. now time to upload! wish me luck!
     
    Geof likes this.
  13. Jesse Koering

    Jesse Koering New Member

    Joined:
    Dec 20, 2016
    Messages:
    21
    Likes Received:
    4
    everything seems to be working!! thank you for all of help! the only problem left is even though i have an sd card in and it says inserted on the main screen on the inside screen it wont show it, but i saw a thread about that yesterday.
    long story short..

    THANK YOU!!
     
    Geof likes this.
Thread Status:
Not open for further replies.

Share This Page