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

Arduino Stock Firmware Error

Discussion in 'Software' started by 3DDP, Oct 30, 2016.

  1. 3DDP

    3DDP New Member

    Joined:
    Sep 18, 2016
    Messages:
    7
    Likes Received:
    0
    Trying to Update my Robo3D R1 Plus with the latest firmware and I get this error both on my Mac and Windows 10 PC


    Arduino: 1.6.12 (Mac OS X), 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".");
    ^
    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:
    /private/var/folders/_g/q4bhxrpx3vx_8k2294tsg6d80000gn/T/AppTranslocation/42633352-9267-47A2-A607-425FAFD3862B/d/Arduino.app/Contents/Java/hardware/tools/avr/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.
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    21,302
    Likes Received:
    7,024
  3. danzca6

    danzca6 Well-Known Member

    Joined:
    Jul 27, 2015
    Messages:
    2,161
    Likes Received:
    1,074
    SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

    That is your error to focus on. Just do a global search and replace of fpos_t to filepos_t an you will be good to go.
     
    Bultmann likes this.

Share This Page