Welcome! Log In Create A New Profile

Advanced

Marlin on Sanguino 1.3a - compile error

Posted by pet110 
Marlin on Sanguino 1.3a - compile error
June 24, 2012 07:09AM
Hi,

I'm pretty new to compiling firmware.

I want to try Marlin for my Prusa which is running on Sprinter at the moment. However I run into the following error which I don't know how to resolve.

In file included from /Marlin.h:26,
                 from cardreader.cpp:1:
/pins.h:647:3: error: #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.

I have downloaded the latest marlin from GitHub and trying to compile with Arduino 0023 using the Sanguino 23r3 "hardware" software.

What have i tried so far:

- I can compile/upload Sprinter fine with my Arduino setup
- I changed the motherboard to 63 in the config
- I tried to switch baudrate to 115200 & 250000
- for some reason I can compile when setting the board to "Arduino Mega 2560" even with board set to "62" in the config


Any help very much appreciated!

Thanks

Peter
Re: Marlin on Sanguino 1.3a - compile error
June 25, 2012 02:54AM
Peter,

I'm not an Arduino programming expert, but in general the error you're getting is triggered programmatically using C/C++ #error compilation directive. It is normally used as a safeguard against compilation with nonsensical combination of settings. Hence, by looking at the source (pins.h, line 647) might give you an idea of what exactly it considers to be nonsensical.

Regards,
Igor
Sorry, only registered users may post in this forum.

Click here to login