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

R1 Plus firmware will not compile

Discussion in 'Troubleshooting' started by Your Basic Bob, Jan 6, 2022.

  1. Your Basic Bob

    Your Basic Bob New Member

    Joined:
    Jan 3, 2016
    Messages:
    1
    Likes Received:
    0
    When I load the software file for the r1 Plus into the Arduino IDE, and then try to upload it to a new mega 2560, a mass of red angry text results. My original Mega seems to be faulty because it stops printing even though Matter Control is sending G code. So I bought a new mega, but I cannot get the firmware to load.
    The errors seem to be something to do with the SD card, Thats a guess, I am no programmer.


    The error text that is shown in the Arduino IDE is below:


    Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"


    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp:24:0:
    SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp:21:
    /Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^~~~~~
    /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp: In member function 'void SdBaseFile::getpos(fpos_t*)':
    SdBaseFile.cpp:298:8: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
    pos->position = curPosition_;
    ^~~~~~~~
    SdBaseFile.cpp:299:8: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
    pos->cluster = curCluster_;
    ^~~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.cpp:23:
    SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.cpp:20:
    /Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.cpp:2:
    SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.cpp:1:
    /Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^~~~~~
    /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdBaseFile.cpp: In member function 'void SdBaseFile::setpos(fpos_t*)':
    SdBaseFile.cpp:1496:23: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
    curPosition_ = pos->position;
    ^~~~~~~~
    SdBaseFile.cpp:1497:22: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
    curCluster_ = pos->cluster;
    ^~~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin_main.cpp:44:
    SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin_main.cpp:30:
    /Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/ultralcd.cpp:6:
    SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/temperature.h:24,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/ultralcd.cpp:1:
    /Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/SdFile.h:27:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/cardreader.h:8,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/stepper.cpp:30:
    SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^~~~~~
    In file included from /Users/BobD/Desktop/ROBO3DR1PLUSV2/Marlin.h:10:0,
    from /Users/BobD/Desktop/ROBO3DR1PLUSV2/stepper.cpp:24:
    /Users/BobD/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^~~~~~
    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:
    23,912
    Likes Received:
    7,338
    Moving this thread from the E3 section -- wrong printer.
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338

Share This Page