Welcome! Log In Create A New Profile

Advanced

problem compiling sprinter

Posted by zg_bot 
problem compiling sprinter
January 02, 2012 12:58AM
hello, I have had a prusa mendel built for a while now but i cant seem to get the sprinter firmware to compile. I keep getting an error in the Sd2Card.cpp tab when i click verify.

the error is "HIGH" was not declared in this scope and it highlights this line:

void Sd2Card::chipSelectHigh(void) {
digitalWrite(chipSelectPin_, HIGH);
}

I am using a mega 1280 board RAMPS 1.2, latest arduino and sprinter downloads with the sd card installed under the ramps board directly into the MEGA (i removed the pins from the ramps board to get it to fit under there)

i have followed the video on youtube about configuring the firmware (setting the board, thermisistors, etc..) but even if i download the firmware and then try to compile it without changing anything i get the same errors.

anyhelp would be greatly appreciated i have not been able to find anything online about this.. I have been printing with a makerbot for about 2 years but i an very unfamiliar with messing around with firmware files.

thanks
Re: problem compiling sprinter
January 02, 2012 02:20PM
Having the same issue here too. (RAMPS 1.4, 2560, kliment-Sprinter-a352585, Win7 Starter on netbook) MOTHERBOARD 33

I commented out sd card support in configuration.h per the following, since I don't have the sd card module:

// Comment out (using // at the start of the line) to disable SD support:
//#define SDSUPPORT
// Uncomment to make Sprinter run init.g from SD on boot
//#define SDINITFILE

I've even tried deleting all of the code in any tab that had anything to do with "sd" and ended up with more errors.

So... tag for help? :-)
Re: problem compiling sprinter
January 02, 2012 02:47PM
Problem solved!

After a little more searching, I found in THIS thread:

Repost:

Quote
sfisher10
In case anybody is interested, Sprinter will compile with Arduino 1.0
with the following changes:

Sd2Card.cpp

#include &ltWProgram.h&gt --&gt #include &ltArduino.h&gt

SdFat.h

void write(uint8_t b); --&gt size_t write(uint8_t b);

SdFile.h

#include &ltWProgram.h&gt --&gt #include &ltArduino.h&gt

void SdFile::write(uint8_t b) { --&gt size_t SdFile::write(uint8_t b)
{

Sprinter.h

#include &ltWProgram.h&gt --&gt #include &ltArduino.h&gt

Also, the IDE will rename "Sprinter.pde" to "Sprinter.ino" as ".ino"
is the new default file extension.

Edited 1 time(s). Last edit at 01/09/2012 11:12AM by scoob.
Re: problem compiling sprinter
January 02, 2012 03:28PM
thanks i will try that out tonight.

so the problem is with the newest version of the arduino software?
Re: problem compiling sprinter
January 04, 2012 05:09AM
When quoting something with < and >, one has to escape these characters ... with & l t ; and & g t ; , without the spaces. smiling smiley


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: problem compiling sprinter
January 09, 2012 11:16AM
Thanks for the tip Traumflug! That's one that doesn't show up in BBcode help. Using "[ code ]..." tags doesn't even display right.

Previous post edited.
Re: problem compiling sprinter
July 20, 2012 04:25PM
Does anyone actually have the firmware "sprinter/marlin" that will run on the Arduino mega 2560/ramps 1.4/ windows XP without having to hire 2 programmers and a software engineer to rewrite it? I've tried ever version of the 2 that I can find and just get errors when I compile it. I see fixes out there that say do this or that, but not where in the file to do it.

Thanks
John
Re: problem compiling sprinter
July 21, 2012 03:18AM
Janos Wrote:
-------------------------------------------------------
> ... without having to
> hire 2 programmers and a software engineer to
> rewrite it?
You are like saying can someone make a hotend without lathe and drill?
It probably just takes one software engineer to fix the compilation though.
Reprap as a whole is very experimental...

There are two sources of problems: Arduino software version, and configuration file caused compilation error.
Of course the source without change should compile - that would narrow down to the arduino software.
Arduino has made a major API changes since 1.0 (WProgram and Arduino issue), I suggest tried other version of Arduino.
Re: problem compiling sprinter
July 21, 2012 04:35AM
For support of Arduino 1.0(.1) you want to install the Gen7 Arduino IDE Support 2.0 package, even if it isn't a Gen7: [github.com] (click on "view raw").


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: problem compiling sprinter
April 24, 2014 05:36PM
Thanks for the info. Worked like a charm!
Sorry, only registered users may post in this forum.

Click here to login