Welcome! Log In Create A New Profile

Advanced

Can't get marlin to compile

Posted by cmiller 
Can't get marlin to compile
August 23, 2012 11:34PM
This is the first time I have tried to upload firmware, I have ramps 1.4 and atmega 2560 and I have downloaded the marlin firmware and opened it up in Arduino 1.0.1 but as soon as I try to compile/upload I get an error "void manage_inactivity(byte debug);" I tried to upload sprinter as well and can't get it to compile either. What am I doing wrong?
Re: Can't get marlin to compile
August 23, 2012 11:59PM
Download version 23 of the arduino tools, most reprap firmware will not compile with version 1.0 and later without additional libraries.
Re: Can't get marlin to compile
August 24, 2012 01:00AM
That did the trick, thanks once again for the help!
Re: Can't get marlin to compile
August 24, 2012 01:05AM
cmiller Wrote:
-------------------------------------------------------
> That did the trick, thanks once again for the
> help!

There is a branch of Marlin compatible with Arduino 1.0, but it is easier to stick with the main branch and Arduino 23 as Polygonhell suggests. There aren't any advantages that I can see for the end user of the firmware with the newer Arduino version.


Help improve the RepRap wiki!
Just click "Edit" in the top-right corner of the page and start typing.
Anyone can edit the wiki!
m3
Re: Can't get marlin to compile
October 20, 2012 05:09PM
Thanks!
Re: Can't get marlin to compile
November 05, 2012 11:21PM
cmiller,

I had a simmilar problem.

Marlin didn't compile with Arduino 0.23 IDE, but did with ubuntu's 12.10 stock arduino IDE.

My software versions are:

Ubuntu 12.10 (up to date)
Arduino 1:1.0.1+dfsg-7
gcc-avr 1:4.7.0-2
avrdude 5.11.1-1
avr-libc 1:1.8.0-2
gcc 4.7.2-1ubuntu2


And I get the following error If I try to compile with arduino 0.23:

In file included from /usr/lib/gcc/avr/4.7.0/../../../avr/include/util/delay.h:44:0,
                 from /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/delay.h:37,
                 from /home/lcampa/bin/arduino-0023/hardware/arduino/cores/arduino/wiring_private.h:30,
                 from /home/lcampa/bin/arduino-0023/hardware/arduino/cores/arduino/WInterrupts.c:34:
/usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘>=’ token

Do you know how to fix this?

Thanks in advance!
ePoxi
Re: Can't get marlin to compile
November 06, 2012 06:54AM
Use Arduino 1.0 or 1.0.1 along with a working RepRap support package: [github.com]


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Can't get marlin to compile
November 06, 2012 06:14PM
Thank Markus!

I forgot to mention that i'm running it on a RAMPS 1.25 + Arduino Mega R2

grinning smiley
Re: Can't get marlin to compile
December 11, 2012 11:02PM
I've converted SPRINTER successfully to 1.0.1!
First I removed all the SDcard garbage. Its possible this made the task far easier.
Next, I replaced all three error instances of "byte debug" to "int debug"
Compiled, uploaded, verified.
grinning smiley
Re: Can't get marlin to compile
March 31, 2013 12:54PM
still unable to convert SD card files over to Arudino 1.01
The error messages remaining are:

"Sd2Card.cpp: In member function 'void Sd2Card::chipSelectHigh()':
Sd2Card.cpp:145: error: 'HIGH' was not declared in this scope
Sd2Card.cpp:145: error: 'digitalWrite' was not declared in this scope
Sd2Card.cpp: In member function 'void Sd2Card::chipSelectLow()':
Sd2Card.cpp:149: error: 'LOW' was not declared in this scope
Sd2Card.cpp:149: error: 'digitalWrite' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t)':
Sd2Card.cpp:216: error: 'millis' was not declared in this scope
Sd2Card.cpp:220: error: 'OUTPUT' was not declared in this scope
Sd2Card.cpp:220: error: 'pinMode' was not declared in this scope
Sd2Card.cpp:222: error: 'INPUT' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::waitNotBusy(uint16_t)':
Sd2Card.cpp:471: error: 'millis' was not declared in this scope
Sd2Card.cpp: In member function 'uint8_t Sd2Card::waitStartBlock()':
Sd2Card.cpp:481: error: 'millis' was not declared in this scope"
Sorry, only registered users may post in this forum.

Click here to login