<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Marlin on Sanguino 1.3a - compile error</title>
        <description> Hi,

I&#039;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&#039;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 &#039;Arduino Mega&#039; selected from the &#039;Tools -&amp;gt; Boards&#039; menu.

I have downloaded the latest marlin from GitHub and trying to compile with Arduino 0023 using the Sanguino 23r3 &quot;hardware&quot; 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 &amp;amp; 250000
- for some reason I can compile when setting the board to &quot;Arduino Mega 2560&quot; even with board set to &quot;62&quot; in the config


Any help very much appreciated!

Thanks

Peter</description>
        <link>https://reprap.org/forum/read.php?146,139501,139501#msg-139501</link>
        <lastBuildDate>Fri, 12 Jun 2026 09:54:47 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?146,139501,139699#msg-139699</guid>
            <title>Re: Marlin on Sanguino 1.3a - compile error</title>
            <link>https://reprap.org/forum/read.php?146,139501,139699#msg-139699</link>
            <description><![CDATA[ Peter,<br />
<br />
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.<br />
<br />
Regards,<br />
Igor]]></description>
            <dc:creator>Igor Lobanov</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Mon, 25 Jun 2012 02:54:42 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,139501,139501#msg-139501</guid>
            <title>Marlin on Sanguino 1.3a - compile error</title>
            <link>https://reprap.org/forum/read.php?146,139501,139501#msg-139501</link>
            <description><![CDATA[ Hi,<br />
<br />
I'm pretty new to compiling firmware.<br />
<br />
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.<br />
<br />
<pre class="bbcode">
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 -&gt; Boards' menu.</pre>
<br />
I have downloaded the latest marlin from GitHub and trying to compile with Arduino 0023 using the Sanguino 23r3 "hardware" software.<br />
<br />
<b>What have i tried so far:</b><br />
<br />
- I can compile/upload Sprinter fine with my Arduino setup<br />
- I changed the motherboard to 63 in the config<br />
- I tried to switch baudrate to 115200 &amp; 250000<br />
- for some reason I can compile when setting the board to "Arduino Mega 2560" even with board set to "62" in the config<br />
<br />
<br />
Any help very much appreciated!<br />
<br />
Thanks<br />
<br />
Peter]]></description>
            <dc:creator>pet110</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sun, 24 Jun 2012 07:09:07 -0400</pubDate>
        </item>
    </channel>
</rss>
