Closed HeerLorcan closed 9 years ago
Did marlin compile correctly before you changed it? If it did then you just need to check what you changed and why, looks like something has been commented out by mistake. I've never seen those errors before so I'm guessing, hopefully someone with more knowledge will see what's happened although they might need to see a copy of configuration.h etc. Lee
On 25 Nov 2014, at 15:22, HeerLorcan notifications@github.com wrote:
Hey, downloaded Marlin. Got myself a mega2560 with lcd display, sd-card, ramps and 5 steppendrivers. Am working with latest Arduino IDE. So, wanted to compile and upload it to the Mega2560. Had to change a few things. #include "wprogram.h" to #include but when trying to compile after that. it gave a few errors. See below for more details anyone who knows what going on, please advice.
Arduino: 1.0.6 (Linux), Board: "Arduino Mega 2560 or Mega ADK" /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/motion_control.cpp -o /tmp/build3331922826025375372.tmp/motion_control.cpp.o In file included from motion_control.cpp:22: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/ultralcd.cpp -o /tmp/build3331922826025375372.tmp/ultralcd.cpp.o In file included from temperature.h:24, from ultralcd.cpp:1: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/Marlin_main.cpp -o /tmp/build3331922826025375372.tmp/Marlin_main.cpp.o In file included from Marlin_main.cpp:30: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area Marlinmain.cpp: In function ‘void enquecommand(const char)’: Marlin_main.cpp:278: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:280: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void enquecommandP(const char)’: Marlin_main.cpp:293: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:295: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void setup()’: Marlin_main.cpp:361: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:366: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:367: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:368: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:369: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:370: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:373: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:374: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:378: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:379: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:380: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:381: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:382: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:383: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:387: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:389: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void get_command()’: Marlin_main.cpp:482: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:484: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:501: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:512: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:527: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:545: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:548: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: At global scope: Marlin_main.cpp:651: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:652: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:653: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:654: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:655: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:656: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void process_commands()’: Marlin_main.cpp:1011: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1060: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1062: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1065: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1067: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1075: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1078: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1122: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1124: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1127: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1171: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1173: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1175: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1316: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1325: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1327: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1329: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1331: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1334: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1336: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1338: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1352: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1356: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1360: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1364: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1368: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1372: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1907: warning: only initialized variables can be placed into program memory area Marlin_main.cpp:1909: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void FlushSerialRequestResend()’: Marlin_main.cpp:1919: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void ClearToSend()’: Marlin_main.cpp:1931: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void kill()’: Marlin_main.cpp:2166: warning: only initialized variables can be placed into program memory area Marlin_main.cpp: In function ‘void Stop()’: Marlin_main.cpp:2179: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/ConfigurationStore.cpp -o /tmp/build3331922826025375372.tmp/ConfigurationStore.cpp.o In file included from ConfigurationStore.cpp:1: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area ConfigurationStore.cpp: In function ‘void Config_ResetDefault()’: ConfigurationStore.cpp:261: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/SdBaseFile.cpp -o /tmp/build3331922826025375372.tmp/SdBaseFile.cpp.o In file included from SdBaseFile.cpp:21: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/Sd2Card.cpp -o /tmp/build3331922826025375372.tmp/Sd2Card.cpp.o In file included from Sd2Card.cpp:20: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/planner.cpp -o /tmp/build3331922826025375372.tmp/planner.cpp.o In file included from planner.cpp:54: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area planner.cpp: In function ‘void plan_buffer_line(const float&, const float&, const float&, const float&, float, const uint8_t&)’: planner.cpp:544: warning: only initialized variables can be placed into program memory area planner.cpp:552: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/MarlinSerial.cpp -o /tmp/build3331922826025375372.tmp/MarlinSerial.cpp.o In file included from MarlinSerial.cpp:23: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/LiquidCrystalRus.cpp -o /tmp/build3331922826025375372.tmp/LiquidCrystalRus.cpp.o LiquidCrystalRus.cpp:16: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/Servo.cpp -o /tmp/build3331922826025375372.tmp/Servo.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/Marlin.cpp -o /tmp/build3331922826025375372.tmp/Marlin.cpp.o In file included from thermistortables.h:4, from Configuration.h:472, from Marlin.pde:33: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/SdFatUtil.cpp -o /tmp/build3331922826025375372.tmp/SdFatUtil.cpp.o In file included from SdFatUtil.cpp:20: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/SdFile.cpp -o /tmp/build3331922826025375372.tmp/SdFile.cpp.o In file included from SdFile.cpp:20: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/stepper.cpp -o /tmp/build3331922826025375372.tmp/stepper.cpp.o In file included from stepper.cpp:24: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area In file included from stepper.cpp:31: speed_lookuptable.h:8: warning: only initialized variables can be placed into program memory area speed_lookuptable.h:43: warning: only initialized variables can be placed into program memory area stepper.cpp: In function ‘void checkHitEndstops()’: stepper.cpp:174: warning: only initialized variables can be placed into program memory area stepper.cpp:176: warning: only initialized variables can be placed into program memory area stepper.cpp:180: warning: only initialized variables can be placed into program memory area stepper.cpp:184: warning: only initialized variables can be placed into program memory area stepper.cpp: In function ‘void microstep_readings()’: stepper.cpp:1054: warning: only initialized variables can be placed into program memory area stepper.cpp:1055: warning: only initialized variables can be placed into program memory area stepper.cpp:1058: warning: only initialized variables can be placed into program memory area stepper.cpp:1061: warning: only initialized variables can be placed into program memory area stepper.cpp:1064: warning: only initialized variables can be placed into program memory area stepper.cpp:1067: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/temperature.cpp -o /tmp/build3331922826025375372.tmp/temperature.cpp.o In file included from temperature.cpp:32: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area temperature.cpp: In function ‘void PID_autotune(float, int, int)’: temperature.cpp:219: warning: only initialized variables can be placed into program memory area temperature.cpp:220: warning: only initialized variables can be placed into program memory area temperature.cpp:221: warning: only initialized variables can be placed into program memory area temperature.cpp:222: warning: only initialized variables can be placed into program memory area temperature.cpp:226: warning: only initialized variables can be placed into program memory area temperature.cpp:227: warning: only initialized variables can be placed into program memory area temperature.cpp:231: warning: only initialized variables can be placed into program memory area temperature.cpp:232: warning: only initialized variables can be placed into program memory area temperature.cpp:233: warning: only initialized variables can be placed into program memory area temperature.cpp:234: warning: only initialized variables can be placed into program memory area temperature.cpp:263: warning: only initialized variables can be placed into program memory area temperature.cpp:270: warning: only initialized variables can be placed into program memory area temperature.cpp:273: warning: only initialized variables can be placed into program memory area temperature.cpp:277: warning: only initialized variables can be placed into program memory area temperature.cpp:283: warning: only initialized variables can be placed into program memory area temperature.cpp:287: warning: only initialized variables can be placed into program memory area temperature.cpp: In function ‘float analog2temp(int, uint8_t)’: temperature.cpp:572: warning: only initialized variables can be placed into program memory area temperature.cpp: In function ‘void max_temp_error(uint8_t)’: temperature.cpp:902: warning: only initialized variables can be placed into program memory area temperature.cpp: In function ‘void min_temp_error(uint8_t)’: temperature.cpp:915: warning: only initialized variables can be placed into program memory area temperature.cpp: In function ‘void bed_max_temp_error()’: temperature.cpp:929: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/cardreader.cpp -o /tmp/build3331922826025375372.tmp/cardreader.cpp.o In file included from cardreader.cpp:1: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/watchdog.cpp -o /tmp/build3331922826025375372.tmp/watchdog.cpp.o In file included from watchdog.cpp:1: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI /tmp/build3331922826025375372.tmp/SdVolume.cpp -o /tmp/build3331922826025375372.tmp/SdVolume.cpp.o In file included from SdVolume.cpp:20: Marlin.h:61: warning: only initialized variables can be placed into program memory area Marlin.h:62: warning: only initialized variables can be placed into program memory area /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI -I/../Documents/SketchArduino/libraries/Wire/utility /../Documents/SketchArduino/libraries/Wire/Wire.cpp -o /tmp/build3331922826025375372.tmp/Wire/Wire.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI -I/../Documents/SketchArduino/libraries/Wire/utility /../Documents/SketchArduino/libraries/Wire/utility/twi.c -o /tmp/build3331922826025375372.tmp/Wire/utility/twi.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/../Documents/SketchArduino/libraries/Wire -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C -I/../Documents/SketchArduino/libraries/U8glib -I/../Documents/SketchArduino/libraries/LiquidCrystal -I/../Documents/SketchArduino/libraries/SPI -I/../Documents/SketchArduino/libraries/LiquidCrystal_I2C/utility /../Documents/SketchArduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.cpp -o /tmp/build3331922826025375372.tmp/LiquidCrystal_I2C/LiquidCrystal_I2C.cpp.o In file included from /../Documents/SketchArduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.cpp:2: /../Documents/SketchArduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:81: error: conflicting return type specified for ‘virtual void LiquidCrystal_I2C::write(uint8_t)’ /usr/share/arduino/hardware/arduino/cores/arduino/Print.h:48: error: overriding ‘virtual size_t Print::write(uint8_t)’
— Reply to this email directly or view it on GitHub.
Hey,
no, Marlin didn't compile correctly. This is first try at compiling after downloading from github. am going to delete complete library, both the standard as my own from Arduino IDE and reinstall them. maybe that will change something. The reason why you see so much is that i have changed build.verbose=false to build.verbose=true in the Arduino config file. wanted to see what really happened when Arduino compiled.
Will send more info after doing all that and retry compiling.
Lorcan
did you solve this one?
remember to select the right board in arduino IDE and select the right board in configuration.h
Hey,
yeah i did, but i lost it. need to redo it. Just finished installing new OS. the ramps and mega2560 is installed. works like a charm to. So can probably download the hex file. But the source files, lost those. have back-up copies, but those seem invalid somehow.
On Thu, Dec 18, 2014 at 12:06 AM, Bo Herrmannsen notifications@github.com wrote:
did you solve this one?
remember to select the right board in arduino IDE and select the right board in configuration.h
— Reply to this email directly or view it on GitHub https://github.com/ErikZalm/Marlin/issues/1156#issuecomment-67413792.
ShinSham DTL Heer Lorcan
bummer about the invalid backup... but if you manage to reconstruct the files put in a pull request instead... then us collabs can simply hit merge
but you need to fork a copy of marlin here on git first, then do changes... and do a pull request
Will do, let me finish this small project first. last in a series of adaptations. Will then set myself to working out the Marlin firmware. There was only one thing that didn't do anything. the backlight was not changeable.
On Thu, Dec 18, 2014 at 1:03 AM, Bo Herrmannsen notifications@github.com wrote:
bummer about the invalid backup... but if you manage to reconstruct the files put in a pull request instead... then us collabs can simply hit merge
but you need to fork a copy of marlin here on git first, then do changes... and do a pull request
— Reply to this email directly or view it on GitHub https://github.com/ErikZalm/Marlin/issues/1156#issuecomment-67420511.
ShinSham DTL Heer Lorcan
Hey,
just downloaded a new version of Marlin. Anyone got issues with fastio.h? and something from Cardreader => flush_presort() that gave an issue as well. maybe have found the build version. still searching in my temp folder on windows.
On Thu, Dec 18, 2014 at 1:06 AM, Heer Lorcan heer.lorcan@gmail.com wrote:
Will do, let me finish this small project first. last in a series of adaptations. Will then set myself to working out the Marlin firmware. There was only one thing that didn't do anything. the backlight was not changeable.
On Thu, Dec 18, 2014 at 1:03 AM, Bo Herrmannsen notifications@github.com wrote:
bummer about the invalid backup... but if you manage to reconstruct the files put in a pull request instead... then us collabs can simply hit merge
but you need to fork a copy of marlin here on git first, then do changes... and do a pull request
— Reply to this email directly or view it on GitHub https://github.com/ErikZalm/Marlin/issues/1156#issuecomment-67420511.
ShinSham DTL Heer Lorcan
ShinSham DTL Heer Lorcan
I have the same problem "cardreader.cpp:214: error: 'flush_presort' was not declared in this scope" what to do?
i have just labeled this issue an verified bug, hope someone smarter than me can spot whats going on... it might be some of pull requests i merged that have screwed it up, if so a lot sorry :-/
don't worry about it. that kind of stuff happens. we are here to learn and help eachother
On Thu, Dec 18, 2014 at 9:37 AM, Bo Herrmannsen notifications@github.com wrote:
i have just labeled this issue an verified bug, hope someone smarter than me can spot whats going on... it might be some of pull requests i merged that have screwed it up, if so a lot sorry :-/
— Reply to this email directly or view it on GitHub https://github.com/ErikZalm/Marlin/issues/1156#issuecomment-67456090.
ShinSham DTL Heer Lorcan
was this issue fixed with the revert or is it still present if using the latest copy in the bug fixing branch?
I'm relatively new to hacking Marlin's code, but I was recently playing around with using the LiquidCrystal_I2C.cpp and LiquidCrystal_I2C.h files for the Elefu RA Board Control Panel and I got the same "LiquidCrystal_I2C.cpp.o:LiquidCrystal_I2C.cpp:47: first defined here" error you're getting when I accidentally included those files in the actual Marlin folder. My fix was realizing you have to only add them to your Arduino libraries instead of including them in the Marlin folder. Now I don't actually know if you are actually including the files in the Marlin folder, but if you are, my suggestion would be to only add the library and leave the files out of the Marlin folder. Again, kinda new to this but your situation looks eerily familiar to mine a little bit ago, hope that somehow helps.
Please upload your configuration (Configuration.h
& Configuration_afv.h
) to some filehoster.
Without your settings, its much harder to reproduce this issue.
@HeerLorcan If you could, please fork the current bugfix branch, do whatever you did to it to cause the compile issue, add your configuration.h and configuration_afv.h and commit it to github so we can have a prayer of figuring out what is going on.
bugfix = dev :-D
This flush_presort issue would be a regression. That code should have been removed after SD_SORTING was rejected. I will check the latest code and see if this needs to be removed.
[EDIT] I just checked, and the "flush_presort" seems to be gone, so we can ignore that part. Seems to be a pretty old comment...
Feeling pretty confident this is cleared up. So many little holes patched lately. Check in again if it reappears.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hey, downloaded Marlin. Got myself a mega2560 with lcd display, sd-card, ramps and 5 steppendrivers. Am working with latest Arduino IDE. So, wanted to compile and upload it to the Mega2560. Had to change a few things. LiquidCrystal_I2C.h: change line in these files from
virtual void write(uint8_t);
tovirtual size_t write(uint8_t);
LiquidCrystal_I2C.cpp: change line in these files from
inline void LiquidCrystal_I2C::write(uint8_t value) {
toinline size_t LiquidCrystal_I2C::write(uint8_t value) {
but when trying to compile after that. it gave a few errors. See below for more details anyone who knows what going on, please advice.