Welcome! Log In Create A New Profile

Advanced

Repetier 0.91v6 fails to compile on Arduino IDE

Posted by _Adrian_ 
Repetier 0.91v6 fails to compile on Arduino IDE
March 07, 2014 07:04PM
Hey guys...
Trying to compile the firmware for my due and install it so i can start testing the electronics pieces and make sure everything is working.

So...
I run through the configurator and build a custom firmware on Repetier's web page download the custom firmware, open it in IDE and then i get this beautiful string of nonsense :
Quote

Arduino: 1.5.5-r2 (Windows 7), Board: "Arduino Due (Programming Port)"

In file included from /Repetier.h:258,
from Commands.cpp:22:
/HAL.h: In static member function 'static void HAL::hwSetup()':
HAL.h:216: error: 'TWI_CLOCK_FREQ' was not declared in this scope
/HAL.h: In static member function 'static void HAL::eprBurnValue(unsigned int, int, eeval_t)':
HAL.h:358: error: 'EEPROM_SERIAL_ADDR' was not declared in this scope
HAL.h:363: error: 'EEPROM_PAGE_SIZE' was not declared in this scope
HAL.h:366: error: 'EEPROM_PAGE_WRITE_TIME' was not declared in this scope
HAL.h:374: error: 'EEPROM_PAGE_WRITE_TIME' was not declared in this scope
/HAL.h: In static member function 'static eeval_t HAL::eprGetValue(unsigned int, int)':
HAL.h:385: error: 'EEPROM_SERIAL_ADDR' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiBegin()':
HAL.h:466: error: 'SDSS' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiInit(uint8_t)':
HAL.h:475: error: 'SDSS' was not declared in this scope
/HAL.h: In static member function 'static uint8_t HAL::spiReceive()':
HAL.h:481: error: 'SDSS' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiReadBlock(uint8_t*, uint16_t)':
HAL.h:489: error: 'SDSS' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiSend(uint8_t)':
HAL.h:498: error: 'SDSS' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiSend(const uint8_t*, size_t)':
HAL.h:507: error: 'SDSS' was not declared in this scope
/HAL.h: In static member function 'static void HAL::spiSendBlock(uint8_t, const uint8_t*)':
HAL.h:519: error: 'SDSS' was not declared in this scope
In file included from /Repetier.h:350,
from Commands.cpp:22:
/Extruder.h: In static member function 'static void Extruder::step()':
Extruder.h:107: error: 'ORIG_E0_STEP_PIN' was not declared in this scope
/Extruder.h: In static member function 'static void Extruder::unstep()':
Extruder.h:156: error: 'ORIG_E0_STEP_PIN' was not declared in this scope
/Extruder.h: In static member function 'static void Extruder::setDirection(uint8_t)':
Extruder.h:203: error: 'ORIG_E0_DIR_PIN' was not declared in this scope
Extruder.h:205: error: 'ORIG_E0_DIR_PIN' was not declared in this scope
/Extruder.h: In static member function 'static void Extruder::enable()':
Extruder.h:272: error: 'ORIG_E0_ENABLE_PIN' was not declared in this scope
In file included from /Repetier.h:379,
from Commands.cpp:22:
/Printer.h: In static member function 'static void Printer::disableXStepper()':
Printer.h:197: error: 'ORIG_X_ENABLE_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::disableYStepper()':
Printer.h:207: error: 'ORIG_Y_ENABLE_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::disableZStepper()':
Printer.h:217: error: 'ORIG_Z_ENABLE_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::enableXStepper()':
Printer.h:227: error: 'ORIG_X_ENABLE_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::enableYStepper()':
Printer.h:237: error: 'ORIG_Y_ENABLE_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::enableZStepper()':
Printer.h:247: error: 'ORIG_Z_ENABLE_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::setXDirection(bool)':
Printer.h:257: error: 'ORIG_X_DIR_PIN' was not declared in this scope
Printer.h:264: error: 'ORIG_X_DIR_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::setYDirection(bool)':
Printer.h:274: error: 'ORIG_Y_DIR_PIN' was not declared in this scope
Printer.h:281: error: 'ORIG_Y_DIR_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::setZDirection(bool)':
Printer.h:291: error: 'ORIG_Z_DIR_PIN' was not declared in this scope
Printer.h:298: error: 'ORIG_Z_DIR_PIN' was not declared in this scope
/Printer.h: In static member function 'static bool Printer::isXMinEndstopHit()':
Printer.h:370: error: 'ORIG_X_MIN_PIN' was not declared in this scope
/Printer.h: In static member function 'static bool Printer::isYMinEndstopHit()':
Printer.h:378: error: 'ORIG_Y_MIN_PIN' was not declared in this scope
/Printer.h: In static member function 'static bool Printer::isZMinEndstopHit()':
Printer.h:386: error: 'ORIG_Z_MIN_PIN' was not declared in this scope
/Printer.h: In static member function 'static void Printer::endXYZSteps()':
Printer.h:506: error: 'ORIG_X_STEP_PIN' was not declared in this scope
Printer.h:507: error: 'ORIG_Y_STEP_PIN' was not declared in this scope
Printer.h:508: error: 'ORIG_Z_STEP_PIN' was not declared in this scope
In file included from /Repetier.h:380,
from Commands.cpp:22:
/motion.h: In member function 'bool PrintLine::startXStep()':
motion.h:501: error: 'ORIG_X_STEP_PIN' was not declared in this scope
/motion.h: In member function 'bool PrintLine::startYStep()':
motion.h:541: error: 'ORIG_Y_STEP_PIN' was not declared in this scope
/motion.h: In member function 'void PrintLine::startZStep()':
motion.h:577: error: 'ORIG_Z_STEP_PIN' was not declared in this scope
Commands.cpp: At global scope:
Commands.cpp:24: error: 'ORIG_X_STEP_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_X_DIR_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_X_ENABLE_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_X_MIN_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_X_MAX_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Y_STEP_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Y_DIR_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Y_ENABLE_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Y_MIN_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Y_MAX_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Z_STEP_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Z_DIR_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Z_ENABLE_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Z_MIN_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_Z_MAX_PIN' was not declared in this scope
Commands.cpp:24: error: 'LED_PIN' was not declared in this scope
Commands.cpp:24: error: 'PS_ON_PIN' was not declared in this scope
Commands.cpp:24: error: 'HEATER_0_PIN' was not declared in this scope
Commands.cpp:24: error: 'HEATER_1_PIN' was not declared in this scope
Commands.cpp:24: error: 'ORIG_FAN_PIN' was not declared in this scope
Commands.cpp:24: error: 'E0_PINS' was not declared in this scope
Commands.cpp:24: error: expected '}' before 'TEMP_0_PIN'
Commands.cpp:24: error: expected ',' or ';' before 'TEMP_0_PIN'
Commands.cpp:24: error: expected declaration before '}' token

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

Running Arduino IDE 1.5.5R2 and Custom Repetier 0.91 V6
( Tried even a older version and the master firmware and still getting the same issue )
Re: Repetier 0.91v6 fails to compile on Arduino IDE
March 09, 2014 08:41AM
Everything you are missing is in the pins.h of the due branch. But you need to select a board from that as well. I guess you have never selected a due port or what MOTHERBOARD value do yiu have in Configuration.h?


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: Repetier 0.91v6 fails to compile on Arduino IDE
March 14, 2014 02:54PM
I am getting also errors upon compiling with Arduino 1.0.5 (under arch linux). The 0.83 complies at first go with defaults, so basically i tried to get an 0.91 equivalent defaults by just getting to config page and hitting all next to have defaults and download the firmware as such. Perhaps i should of set something explicit.

ui.cpp: In member function 'bool::showEntry() const':
ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
     f = HAL::readFlashByte((const prog_char*)&filter);
                                   ^
ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:120:29: error: expected primary-expression before 'const'
     f = HAL::readFlashByte((const prog_char*)&filter);
                             ^
ui.cpp:120:29: error: expected ')' before 'const'
ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
     f2 = HAL::readFlashByte((const prog_char*)&nofilter);
                                    ^
ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:123:30: error: expected primary-expression before 'const'
     f2 = HAL::readFlashByte((const prog_char*)&nofilter);
                              ^
ui.cpp:123:30: error: expected ')' before 'const'

Interestingly i did not set anything to ui nor lcd. The motherboard by default is defined to be 33 (mega), so goes to those pins to follow.
Also I am under the impression that settings page does not differentiate between ramps 1.2 and 1.3 for instance, seems to define ramps_1_3 either way.
Re: Repetier 0.91v6 fails to compile on Arduino IDE
March 14, 2014 08:12PM
Nvm it seems the issue is with the adruino 1.0.5., forwarded to 1.5.6 beta and now i see other errors quite resembling the OP.
Sorry, only registered users may post in this forum.

Click here to login