I did a quick test here and the Ultimaker/Marlin compiles fine with the latest 'stable' Arduino 1.0 (1.0.5) and gives the error you get with 1.5 Beta (tested with 1.5.7).
Unless you absolutely want/need to go ahead with 1.5, easiest is to install 1.0...
1.5 probably requires some more tweak in the Makefiles -- note that 1.5.7 does not even have the avr-utils, which requires more work to setup a build environment...
Not entirely true, You get this issue also with 1.0.5 when using a wrong motherboard. The default right now is '11' in the Makefile. A patch I have in my local git repository looks like the following (tested on *ubuntu) for an UM2 which is motherboard version 72. Arduino is installed via apt-get and i think it now has a dependancy on the normal avrdude (avrdude.conf is a symlink to /etc/avrdude...)
diff --git a/Marlin/Makefile b/Marlin/Makefile
index d8c7d0a..481c454 100644
--- a/Marlin/Makefile
+++ b/Marlin/Makefile
@@ -37,19 +37,19 @@
# from the commandline with "make HARDWARE_MOTHERBOARD=71" for example
# This defined the board you are compiling for (see Configuration.h for the options)
-HARDWARE_MOTHERBOARD ?= 11
+HARDWARE_MOTHERBOARD ?= 72
# Arduino source install directory, and version number
-ARDUINO_INSTALL_DIR ?= ../../arduino-0022
-ARDUINO_VERSION ?= 22
+ARDUINO_INSTALL_DIR ?= /usr/share/arduino
+ARDUINO_VERSION ?= 105
# You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
AVR_TOOLS_PATH ?=
#Programmer configuration
UPLOAD_RATE ?= 115200
-AVRDUDE_PROGRAMMER ?= arduino
-UPLOAD_PORT ?= /dev/arduino
+AVRDUDE_PROGRAMMER ?= wiring
+UPLOAD_PORT ?= /dev/ultimaker2
#Directory used to build files in, contains all the build files, from object files to the final hex file.
BUILD_DIR ?= applet
@@ -293,7 +293,7 @@ LDFLAGS = -lm
# Programming support using avrdude. Settings and variables.
AVRDUDE_PORT = $(UPLOAD_PORT)
AVRDUDE_WRITE_FLASH = -U flash:w:$(BUILD_DIR)/$(TARGET).hex:i
-AVRDUDE_FLAGS = -D -C $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf \
+AVRDUDE_FLAGS = -D -C $(ARDUINO_INSTALL_DIR)/hardware/tools/avrdude.conf \
-p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
-b $(UPLOAD_RATE)
Recommended Posts
amedee 349
I did a quick test here and the Ultimaker/Marlin compiles fine with the latest 'stable' Arduino 1.0 (1.0.5) and gives the error you get with 1.5 Beta (tested with 1.5.7).
Unless you absolutely want/need to go ahead with 1.5, easiest is to install 1.0...
1.5 probably requires some more tweak in the Makefiles -- note that 1.5.7 does not even have the avr-utils, which requires more work to setup a build environment...
Link to post
Share on other sites