Welcome! Log In Create A New Profile

Advanced

Error while compiling 0.91 firmware

Posted by itaysp 
Error while compiling 0.91 firmware
December 31, 2013 12:35PM
Hey,
Just tried to upload the new firmware with the Arduino IDE 1.0.5 and I get this error at 'Printer.cpp' :

Printer.cpp: In static member function 'static void Printer::homeZAxis()':
Printer.cpp:838: error: expected primary-expression before ',' token
Printer.cpp:838: error: expected primary-expression before ',' token
Printer.cpp:839: error: expected primary-expression before ')' token

I use the website to make a new config file, then downloaded and open the .ino file with the Arduino IDE and tried to upload.
I checked in the IDE that the board is "Arduino Mega" and the Serial port is correct.

I have a Delta printer.

I attached the configuration.h file.

Please advise smiling smiley
Thanks!

Edit:
I tried CodeBlocks as you advised at github, and it crushes when I try to build.

Edited 3 time(s). Last edit at 12/31/2013 01:21PM by itaysp.
Attachments:
open | download - Configuration.h (18.8 KB)
Re: Error while compiling 0.91 firmware
December 31, 2013 04:27PM
I managed to solve it.

I don't know why but when I downloaded the firmware + the configuration file at the first time, all these settings had now values in the configuration:

#define ENDSTOP_X_BACK_MOVE
#define ENDSTOP_Y_BACK_MOVE
#define ENDSTOP_Z_BACK_MOVE
#define ENDSTOP_X_RETEST_REDUCTION_FACTOR
#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR
#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR

When I loaded the configuration file to the website, and then exported it again, it added the values and solved the problem.
Re: Error while compiling 0.91 firmware
January 01, 2014 03:57AM
Thanks for the feedback. These 6 values were not configurable in the earlier version and were added later. So by reloading the webpage you got the version that filled in these values as well.


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: Error while compiling 0.91 firmware
January 05, 2014 06:18PM
I get the follwing error when trying to compile.



In file included from /Repetier.h:251,
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:251,
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
In file included from /Repetier.h:371,
from Commands.cpp:22:
/motion.h: In member function 'bool PrintLine::setNominalMove()':
/motion.h:291: warning: no return statement in function returning non-void
/motion.h: In member function 'bool PrintLine::startXStep()':
/motion.h:533: warning: no return statement in function returning non-void
/motion.h: In member function 'bool PrintLine::startYStep()':
/motion.h:572: warning: no return statement in function returning non-void
Commands.cpp: At global scope:
Commands.cpp:24: warning: only initialized variables can be placed into program memory area
Commands.cpp: In static member function 'static void Commands::executeGCode(GCode*)':
Commands.cpp:1257: warning: only initialized variables can be placed into program memory area
Re: Error while compiling 0.91 firmware
January 06, 2014 03:51AM
@sonext128 Have you selected the right board in the Arduino IDE? Looks like this was missing so you never got the variables required for the rest to compile.


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!
Sorry, only registered users may post in this forum.

Click here to login