ErikZalm/Marlin — Issue #78: Sanguino Gen 6 Compile error ... on RC2
Author: mhackney
Created: 2012-02-26 18:58:53+00:00
State: open

1) Downloaded latest (2 hrs ago) Marlin RC2.

2) Edited Configuration.h to "#define motherboard 51" (I am using a Gen6 deluxe board but )

3) set my board to Sanguino and serial port

4) Compile and get this error:

In file included from cardreader.h:6,
from cardreader.cpp:2:
SdFile.h:40: error: conflicting return type specified for 'virtual size_t SdFile::write(uint8_t)'
/Users/mhackney/Desktop/3D Printing Newest/Arduino RC1.app/Contents/Resources/Java/hardware/Sanguino/cores/arduino/Print.h:40: error: overriding 'virtual void Print::write(uint8_t)'

5) I get the same error if I choose motherboard 5 (Gen6 board).

6) Also, the instructions on how to install and setup in the README.md file need to be updated I think. (I am not an expert and in fact have not been successful compiling and installing Marlin on a Gen6 board from MacOSX.) However, following the Configuration and Compilation steps as written does not work at all. Currently they say: (the steps I question are indicated with a ===> and comments in []). I've also attached a numbered config and install sequence at the very end that perhaps can be used instead.

Configuring and compilation:
===>Install the arduino software IDE/toolset v22 http://www.arduino.cc/en/Main/Software
[this does not work, I needed to use the latest Arduino v1.0][

For gen6 and sanguinololu the Sanguino directory in the Marlin dir needs to be copied to the arduino environment. copy Marlin\sanguino \hardware\Sanguino

Install Ultimaker's RepG 25 build http://software.ultimaker.com For SD handling and as better substitute (apart from stl manipulation) download the very nice Kliment's printrun/pronterface https://github.com/kliment/Printrun

===>Copy the Ultimaker Marlin firmware https://github.com/ErikZalm/Marlin/tree/Marlin_v1 (Use the download button)
[this statement is confusing since the firmware must have already been downloaded to perform the above step.

===>Start the arduino IDE. Select Tools -> Board -> Arduino Mega 2560 or your microcontroller Select the correct serial port in Tools ->Serial Port Open Marlin.pde
[ this seems to be a run-on statement, shouldn't "Open Marlin.pde" be a separate step? ]
[also, Arduino 1.0 uses a different file extension, so this should read "Open Marlin.ino"]

Click the Verify/Compile button

Click the Upload button If all goes well the firmware is uploading

Start Ultimaker's Custom RepG 25 Make sure Show Experimental Profiles is enabled in Preferences Select Sprinter as the Driver

Press the Connect button.

KNOWN ISSUES: RepG will display: Unknown: marlin x.y.z

That's ok. Enjoy Silky Smooth Printing.

========== Updated Configuration and Compilation text to match latest Merlin RC2 =============
Configuration and Compilation

1) Install Arduino 1.0 IDE for your platform: http://www.arduino.cc/en/Main/Software

2) Download the Marlin v1 RC2 code: https://github.com/ErikZalm/Marlin/tree/Marlin_v1

3) For gen6 and sanguinololu platforms, the "Sanguino" directory located in the Marlin directory needs to be copied to the Arduino IDE environment.

a) On Linux and Windows, copy the Marlin\Sanguino directory to the Arduino IDE's hardware\Sanguino directory.

b) On Mac OSX, open the Arduino IDE package (control-click the Arduino application icon and choose "Show Package Contents"). Copy the Marlin->Sanguino folder to the Contents->Resources->Java->hardware->Sanguino folder

4) Install Ultimaker's RepG 25 build http://software.ultimaker.com For SD handling and as better substitute (apart from stl manipulation) download the very nice Kliment's printrun/pronterface https://github.com/kliment/Printrun

5) Start the Arduino IDE. Select Tools->Board->Arduino Mega 2560 or your micro controller. Select your serial port in Tools->Serial Port

6) Open the Marlin.ino file

7) Edit the Marlin Configuration.h file to configure your motherboard (#define MOTHERBOARD XYZ)

8) Click the Verify/Compile button

9) Click the Upload button. If all goes well, the firmware will upload.

10) Start Ultimaker's Custom RepG 25. Make sure "Show Experimental Profiles" is enabled in Preferences. Select "Sprinter" as the driver.

11) Press the Connect button