Welcome! Log In Create A New Profile

Advanced

Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1

Posted by HeK 
HeK
Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1
January 16, 2014 11:30PM
Hello,

I am attempting to compile Repetier-Firmware 0.91 (Rev 4 config) for a Gen7 1.3.1 board using an ATmega644 @ 20mhz.
I am using the Arduino 1.0.5-r2 IDE under Windows 7 x64.
I have the most recent Gen7 board files from the Gen7 git loaded into the IDE.

I have motherboard type 7 selected in the configuration.h

The error that I receive while compiling is:

In file included from /Repetier.h:255,
                 from Commands.cpp:22:
/HAL.h:550:1: error: pasting "DIO" and "-" does not give a valid preprocessing token
/HAL.h:550:1: error: invalid suffix "_DDR" on integer constant
/HAL.h:550:1: error: pasting "DIO" and "-" does not give a valid preprocessing token
/HAL.h:550:1: error: invalid suffix "_PIN" on integer constant
In file included from /Repetier.h:255,
                 from Commands.cpp:22:
/HAL.h: In static member function 'static void HAL::spiBegin()':
HAL.h:550: error: 'DIO' was not declared in this scope


Any ideas on how to proceed?


Thanks!

-Kyle
Re: Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1
January 17, 2014 02:02AM
Here I have the same problem, but then with a Gen 7 v1.4.1. Same situation, but with a different board. I've also tried using different versions of Arduino with their compatible Gen 7 support packages. Nothing worked.


Eppur si muove!
Re: Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1
January 17, 2014 08:47AM
The problem occurs if you have no SDSS set and gen7 does not have, so it is -1. Please change spiBegin in HAL.h like this

    static void spiBegin()
    {
#if SDSS>=0
        SET_INPUT(MISO_PIN);
        SET_OUTPUT(MOSI_PIN);
        SET_OUTPUT(SCK_PIN);
        // SS must be in output mode even it is not chip select
        SET_OUTPUT(SDSS);
#if SDSSORIG >- 1
        SET_OUTPUT(SDSSORIG);
#endif
        // set SS high - may be chip select for another SPI device
#if SET_SPI_SS_HIGH
        WRITE(SDSS, HIGH);
#endif  // SET_SPI_SS_HIGH
#endif
    }

then the code compiles.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1
January 17, 2014 03:21PM
Somehow now a different error shows up:

SDCard.cpp: In constructor 'SDCard:confused smileyDCard()':
SDCard.cpp:44: error: 'DIO49_DDR' was not declared in this scope
SDCard.cpp:44: error: 'DIO49_PIN' was not declared in this scope
SDCard.cpp:45: error: 'DIO49_WPORT' was not declared in this scope
SDCard.cpp:45: error: 'DIO49_PIN' was not declared in this scope
SDCard.cpp:45: error: 'DIO49_WPORT' was not declared in this scope
SDCard.cpp:45: error: 'DIO49_PIN' was not declared in this scope
SDCard.cpp: In member function 'void SDCard::automount()':
SDCard.cpp:52: error: 'DIO49_RPORT' was not declared in this scope
SDCard.cpp:52: error: 'DIO49_PIN' was not declared in this scope

While the SDSUPPORT is set to false :

/** Set to false to disable SD support: */
#ifndef SDSUPPORT  // Some boards have sd support on board. These define the values already in pins.h
#define SDSUPPORT false
// Uncomment to enable or change card detection pin. With card detection the card is mounted on insertion.
#define SDCARDDETECT -1
// Change to true if you get a inserted message on removal.
#define SDCARDDETECTINVERTED false
#endif


Eppur si muove!
Re: Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1
January 17, 2014 04:30PM
You need

#define SDSUPPORT false

then this part of code will never compile and also get no errors. I think you have enabled it with some setting like FEATURE_CONTROLLER 2
which you do not have.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Problem while compiling Repetier-Firmware 0.91 for Gen7 1.3.1
January 17, 2014 04:41PM
Got it! Thanks a lot! That last bit was the solution!


Eppur si muove!
Sorry, only registered users may post in this forum.

Click here to login