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

Solved R1+ Printer Firmware update issues

Discussion in 'Troubleshooting' started by TKCC71, Mar 2, 2017.

Thread Status:
Not open for further replies.
  1. TKCC71

    TKCC71 Member

    Joined:
    Mar 24, 2016
    Messages:
    75
    Likes Received:
    31
    I have been trying to re-load the firmware to my Robo in the Arduino program but keep getting the following errors?

    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar: unable to rename 'core\core.a'; reason: File exists

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

    I am using Arduino version 1.6.9

    Any one know what the issue is or how to resolve this?
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,671
    Likes Received:
    7,316
  3. TKCC71

    TKCC71 Member

    Joined:
    Mar 24, 2016
    Messages:
    75
    Likes Received:
    31
    I ended up getting the program loaded, but now I am having some strange issues. The printer starts to level and then when gets to the far right corner, the printer stops and then the temps begin dropping?

    I did a PID calibration so not sure what could be causing this? (I am using a EV3D V6 extruder and updated the thermistor in the sketch)
     
  4. TKCC71

    TKCC71 Member

    Joined:
    Mar 24, 2016
    Messages:
    75
    Likes Received:
    31
    uggg, trying to reload the sketch and now I think the issue I was having was that I didnt change the max temp for mu extrider. Hoever now I am getting this error when I try to push the sketch??

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

    In file included from sketch\Marlin.h:23:0,

    from sketch\BlinkM.cpp:5:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\BlinkM.cpp:5:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\BlinkM.cpp:5:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\BlinkM.cpp:5:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\BlinkM.cpp:5:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\BlinkM.cpp:5:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\ConfigurationStore.cpp:1:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\ConfigurationStore.cpp:1:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\ConfigurationStore.cpp:1:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\ConfigurationStore.cpp:1:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\ConfigurationStore.cpp:1:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\ConfigurationStore.cpp:1:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\MarlinSerial.cpp:23:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\MarlinSerial.cpp:23:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\MarlinSerial.cpp:23:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\MarlinSerial.cpp:23:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\MarlinSerial.cpp:23:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\MarlinSerial.cpp:23:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

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

    LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");

    ^

    In file included from sketch\SdFile.h:27:0,

    from sketch\cardreader.h:8,

    from sketch\Marlin_main.cpp:44:

    SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

    struct fpos_t {

    ^

    In file included from sketch\Marlin.h:10:0,

    from sketch\Marlin_main.cpp:30:

    c:\users\tkcc7\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

    __extension__ typedef long long fpos_t;

    ^

    sketch\Marlin_main.cpp: In function 'void loop()':

    sketch\Marlin_main.cpp:588:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

    card.openFile("robo~1.gco",true);

    ^

    sketch\Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':

    sketch\Marlin_main.cpp:884:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

    planeNormal.debug("planeNormal");

    ^

    exit status 1
    using typedef-name 'fpos_t' after 'struct'

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

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Issue is old Robo firmware using a construct that no longer works in newer Arduino compilers. If you want to upload without editing files then you need to downgrade your Arduino IDE to something before 1.6.8. This is not recommended. The second choice is to do a search and replace on the following term

    Replace
    Code:
    fpos_t 

    with
    Code:
    FatPos_t

    in every file it occurs in within the Marlin source code sub-directory
     
  6. TKCC71

    TKCC71 Member

    Joined:
    Mar 24, 2016
    Messages:
    75
    Likes Received:
    31
    I went back in a did the replace all to FatPos_t and now I still have this error? Wow I cant believe there are so many errors.



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

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

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

    LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");

    ^

    sketch\Marlin_main.cpp: In function 'void loop()':

    sketch\Marlin_main.cpp:588:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

    card.openFile("robo~1.gco",true);

    ^

    sketch\Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':

    sketch\Marlin_main.cpp:884:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

    planeNormal.debug("planeNormal");

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Users\TKCC7\AppData\Local\Temp\arduino_modified_sketch_799591\ROBO3DR1PLUSV2.ino:33:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Users\TKCC7\AppData\Local\Temp\arduino_modified_sketch_799591\ROBO3DR1PLUSV2.ino:33:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Users\TKCC7\AppData\Local\Temp\arduino_modified_sketch_799591\ROBO3DR1PLUSV2.ino:33:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Users\TKCC7\AppData\Local\Temp\arduino_modified_sketch_799591\ROBO3DR1PLUSV2.ino:33:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Users\TKCC7\AppData\Local\Temp\arduino_modified_sketch_799591\ROBO3DR1PLUSV2.ino:33:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Users\TKCC7\AppData\Local\Temp\arduino_modified_sketch_799591\ROBO3DR1PLUSV2.ino:33:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Sd2Card.cpp:20:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Sd2Card.cpp:20:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Sd2Card.cpp:20:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Sd2Card.cpp:20:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Sd2Card.cpp:20:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Sd2Card.cpp:20:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\SdBaseFile.cpp:21:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\SdBaseFile.cpp:21:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\SdBaseFile.cpp:21:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\SdBaseFile.cpp:21:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\SdBaseFile.cpp:21:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\SdBaseFile.cpp:21:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    SdBaseFile.cpp:297: error: prototype for 'void SdBaseFile::getpos(fpos_t*)' does not match any in class 'SdBaseFile'

    void SdBaseFile::getpos(fpos_t* pos) {

    ^

    In file included from sketch\SdBaseFile.cpp:24:0:

    SdBaseFile.h:199: error: candidate is: void SdBaseFile::getpos(FatPos_t*)

    void getpos(FatPos_t* pos);

    ^

    sketch\SdBaseFile.cpp: In member function 'int SdBaseFile::peek()':

    SdBaseFile.cpp:929: error: no matching function for call to 'SdBaseFile::getpos(fpos_t*)'

    getpos(&pos);

    ^

    sketch\SdBaseFile.cpp:929:14: note: candidate is:

    In file included from sketch\SdBaseFile.cpp:24:0:

    sketch\SdBaseFile.h:199:8: note: void SdBaseFile::getpos(FatPos_t*)

    void getpos(FatPos_t* pos);

    ^

    sketch\SdBaseFile.h:199:8: note: no known conversion for argument 1 from 'fpos_t* {aka long long int*}' to 'FatPos_t*'

    SdBaseFile.cpp:931: error: no matching function for call to 'SdBaseFile::setpos(fpos_t*)'

    if (c >= 0) setpos(&pos);

    ^

    sketch\SdBaseFile.cpp:931:26: note: candidate is:

    In file included from sketch\SdBaseFile.cpp:24:0:

    sketch\SdBaseFile.h:203:8: note: void SdBaseFile::setpos(FatPos_t*)

    void setpos(FatPos_t* pos);

    ^

    sketch\SdBaseFile.h:203:8: note: no known conversion for argument 1 from 'fpos_t* {aka long long int*}' to 'FatPos_t*'

    sketch\SdBaseFile.cpp: At global scope:

    SdBaseFile.cpp:1495: error: prototype for 'void SdBaseFile::setpos(fpos_t*)' does not match any in class 'SdBaseFile'

    void SdBaseFile::setpos(fpos_t* pos) {

    ^

    In file included from sketch\SdBaseFile.cpp:24:0:

    SdBaseFile.h:203: error: candidate is: void SdBaseFile::setpos(FatPos_t*)

    void setpos(FatPos_t* pos);

    ^

    exit status 1
    prototype for 'void SdBaseFile::getpos(fpos_t*)' does not match any in class 'SdBaseFile'

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

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    You didn't replace them all
     
  8. TKCC71

    TKCC71 Member

    Joined:
    Mar 24, 2016
    Messages:
    75
    Likes Received:
    31
    Got

    Gotcha I didnt go into each TAB. :) Working on it now. Thanks
     
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,671
    Likes Received:
    7,316
    Welcome to the world of programming. Miss one little semi-colon or bracket or make one little typo and ...
     
  10. TKCC71

    TKCC71 Member

    Joined:
    Mar 24, 2016
    Messages:
    75
    Likes Received:
    31
    Well finally think I can close this troubleshoot. Thank you guys. 1 last question, I do notice a pause when it auto levels in the back right corner and then goes to the front right corner for a last sweep before it begins to print. This was something it didn't do before. Is this normal?
     
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,671
    Likes Received:
    7,316
    Something is telling to HOME again in the startup GCode most likely.
    You can ignore it.
     
Thread Status:
Not open for further replies.

Share This Page