Compilation error with Arduino 1.6.9, FW 0.92.9, Due+RADDS, Delta Printer

Hello,

I configured and downloaded a configuration.h with the web based configuration tool with my DUE+RADDS delta printer setup. For the first try I just configured the general page and let the rest by default values.

I build up a due+RADDS based delta printer for the first time. Could this be a arduino library issue?

I got a lot of errors during compilation:

Arduino: 1.6.9 (Windows 10), Board: "Arduino Duemilanove or Diecimila, ATmega328"

Bibliothek SPI in Version 1.0 im Ordner: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI wird verwendet
exit status 1
'DIOMISO_PIN_DDR' was not declared in this scope

In file included from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\HAL.h:83:0,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Repetier.h:539,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\BedLeveling.cpp:107:

fastio.h:34: error: 'DIOMISO_PIN_PIN' was not declared in this scope

In file included from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\HAL.h:83:0,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Repetier.h:539,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\BedLeveling.cpp:107:

fastio.h:36: error: 'DIOMOSI_PIN_PIN' was not declared in this scope

In file included from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\HAL.h:83:0,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Repetier.h:539,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\BedLeveling.cpp:107:

fastio.h:36: error: 'DIOSCK_PIN_DDR' was not declared in this scope

In file included from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\HAL.h:83:0,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Repetier.h:539,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\BedLeveling.cpp:107:

fastio.h:36: error: 'DIOSCK_PIN_PIN' was not declared in this scope

In file included from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\HAL.h:83:0,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Repetier.h:539,
                 from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\BedLeveling.cpp:107:

fastio.h:36: error: 'DIOSDSS_DDR' was not declared in this scope

C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Printer.h: In static member function 'static void Printer::disableXStepper()':

fastio.h:29: error: 'DIOORIG_X_ENABLE_PIN_WPORT' was not declared in this scope
fastio.h:29: error: 'DIOORIG_X_ENABLE_PIN_PIN' was not declared in this scope
fastio.h:29: error: 'DIOORIG_X_ENABLE_PIN_PIN' was not declared in this scope

...

Comments

  • i think you are compiling for the wrong board. you have to install the bords for DUE. not duemilaneov
  • Exactly, go to board manager and install sam board and then select Due Programming port as port if you have the one next to power..
  • edited May 2016
    Thank you for your help!
    I installed SAM boards and selected the DUE Programming port. And I got an answer when I selected "Get board info" :-)

    But now I have another problem... The compiler can´t find avr/io.h what is included in the HAL (HAL.h)

    Do I have to install something else?
    What kind of programmer do I have to select at tools/programmer?

    I found an io.h file at the following path:
    C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\avr

    Here the error report of the compiler:

    In file included from C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\Repetier.h:539:0,

                     from C:\Users\Benjamin\Dropbox\3D_Drucker\Repetier-Firmware\Repetier\Repetier.ino:151:

    C:\Users\Benjamin\AppData\Local\Temp\buildbc593312f23070b14d455f0f585951d7.tmp\sketch\HAL.h:34:20: fatal error: avr/io.h: No such file or directory

     #include <avr/io.h>
                        ^
    compilation terminated.



  • Looks like you are using the wrong sources.

    If you get them from github there are 2 trees in src. One for AVR (which you are using) and the due tree. You need to compile the due version with your due configuration.

    If you used the config tool and download zip you get the correct tree based on configuration settings.
  • I downloaded the sources with the configuration tool and there I selected the ARM based DUE. But there I had some trouble, because the configuration.h file was completely unconfigured in the zip download (the separate download works). So because of this I think that the whole zip download seems to go wrong with my browser/configuration...

    Do you have an idea, why the configuration tool is not working with my system?
  • Now I downloaded the sources from github and I selected the due tree and it works now!

    I don´t know why, but I have trouble with the configuration tool... However the creation of the configuration.h works with the separate download. So I´m happy now!

    Thanks a lot for your support!
  • The empty config download seems a real problem. I still can not copy the error. So far I know it happens with 0.92.9 if zip is downloaded. But everytime I try it i get it with values.

    Does this also happen to you with the default config or only if you uploaded some old config? In that case I'd like to have a copy of the config that causes it.
  • edited May 2016
    It also happens with a default configuration... I also tried 2 webbrowser with the same result (Firefox and IE).
  • Ok, with firefox I got in deed the error. Always used chrome. After reuploading the downloader it now also works again for firefox as it seems. If it comes back, please report. But my firefox now succeeds.
  • With my Firefox it is working now too. I retried it with the Internet Explorer. There is still the empty configuration.
Sign In or Register to comment.