Welcome! Log In Create A New Profile

Advanced

Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error

Posted by 55rebel 
Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 04, 2015 09:38PM
Having a problem compiling Folger Tech's supplied Marlin_RAMPS_i38 onto the Arduino Mega 2560. Any help would be greatly appreciated, Thanks.

Setup:
Folger Tech's Prusa i3,
Firmware: Marlin_RAMPS_i38,
No LCD/Card reader installed (relying solely on PC)
OS: Windows 7

Error message when trying to compile/upload....see text file attachment:

Edited 3 time(s). Last edit at 03/06/2015 04:31PM by 55rebel.
Attachments:
open | download - errorMessage.txt (49.2 KB)
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 05, 2015 01:39AM
What is open in the arduino ide when you try to upload the sketch? There should he over 20 different files open in the ide when marlin is uploaded. I'm not all that familiar with the ide, but from the looks of the error I'm guessing that you are missing a few header files.
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 05, 2015 08:16AM
Yeah, 43 to be exact. All header files listed in the error message, are open in Aduino. Even tryed looking through them, to maybe figure out what the problem might be, but hell if I could figure it out; not familar enough with Arduino code sad smiley
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 05, 2015 03:47PM
I compiled/uploaded a really simple sketch to the Mega 2560 to check if the board was even functional...


void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("Hellow world");
delay(1000);
}


Though the sketch compiled/uploaded, and functioned as expected--printing out "Hellow world" on cue in the Serial Monitor; on compiling it spit out the following errors which really makes no sense, if everything was copacetic with the arduino IDE and/or the board....No?


C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void store_char(unsigned char, ring_buffer*)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:98: warning: comparison between signed and unsigned integer expressions
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void __vector_25()':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:127: warning: unused variable 'c'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void __vector_36()':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:153: warning: unused variable 'c'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void __vector_51()':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:168: warning: unused variable 'c'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void __vector_54()':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:183: warning: unused variable 'c'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In member function 'void HardwareSerial::begin(long unsigned int, byte)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:368: warning: unused variable 'current_config'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In member function 'virtual size_t HardwareSerial::write(uint8_t)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:467: warning: comparison between signed and unsigned integer expressions

Edited 1 time(s). Last edit at 03/05/2015 04:00PM by 55rebel.
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 06, 2015 08:31PM
You might want to see what they say on the arduino boards about the warnings. Some IDEs I've worked with before have settings for how aggressive warning notification is.... the issues you are having are almost certainly with the compiler/ ide and not the hardware.

I'd download a fresh version of marlin from github and compile
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 06, 2015 09:23PM
Yes, I've been looking at the arduino forums, seeing if I can find someone with the same issues; just haven't submitted my question there yet.

I have downloaded the latest version of marlin from github, modified it to fit my setup, and tried compiling/uploading it; I get a fraction of the errors that I got from the version Folger tech supplies.....but still a no go. I have yet to submit a support request to Folger's tech support, but from what I've heard, their tech support ain't that great :/ ....That's next on my list though.

Hey, I appreiciat your support DRobs86, you're the only one who as attempted to help/guide me so far....thanks!!
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 08, 2015 01:46AM
complete noob here, but did you copy all files into the desktop folder with the correct name? Marlin_RAMPS_i38, IIRC

perhaps it can't find them... just a guess...when I downloaded them, they were compressed...so had to do some fooling around to get them expanded into the right folder...
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 08, 2015 03:14AM
I bet the compile errors that you are getting now are from bad definitions in your config.h file. Post those errors and see if we can help. And no problem. .. I was in the same type of position as you a month or so ago (trying to get everything working).
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 08, 2015 05:02AM
What version of Arduino IDE YOU R USING.
If different than 1.0.6 them it might be the issu!
Downgrade from 1.6 ( if you r using the latest one) to 1.0.6
And you should be able to compile! I went through something similar ... " variable ..." Don' t remember what it was.
Fixed by downgrade to the older version of IDE and worked!

Good luck
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error (SOLVED)smiling bouncing smiley
March 08, 2015 09:42PM
Ok, I think I found the problem Guys; I noticed that in the error codes there were repeated reverences in my user/documents/Arduino/libraries folder to the "Marlin_RAMPS_i38" file. Not sure how it got in there, maybe I put it there thinking that it was a library file, but anyway... my bad. I deleted it and voila! drinking smiley ....she uploaded, and is seemingly working know. I still saw what looked like errors (in red) as she uploaded though....is that normal?

Thanks Guys, to everyone who chimed in. We'll call this one solved for now. Again... thanks for the help/suggestions!
.

Edited 4 time(s). Last edit at 03/08/2015 09:49PM by 55rebel.
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error (New Issue)
March 09, 2015 07:57PM
I am having a similar issue. The code from folgertech's google drive is not compiling. I am using 1.0.6 on a mac. This is the error I get.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Mac OS X), Board: "Arduino Mega 2560 or Mega ADK"
core.a(main.cpp.o): In function `main':
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:34: undefined reference to `setup'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:44: undefined reference to `loop'

This seems like something simple that I am missing any help would be appreciated.

Edited 1 time(s). Last edit at 03/09/2015 08:04PM by Linkreincarnate.
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error (New Issue)
March 09, 2015 09:34PM
"Show verbose output during compilation"

I would enable this in your Preferences, and repost ALL of the error code result....might help to better determine what the problem is.
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 10, 2015 02:19AM
This is what I get when I try to compile it with the verbose error reporting on


Arduino: 1.0.6 (Mac OS X), Board: "Arduino Mega 2560 or Mega ADK"
/Applications/Arduino.app/Contents/Resources/Java/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/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/mega -I/Applications/Arduino.app/Contents/Resources/Java/libraries/LiquidCrystal -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SPI /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Marlin_RAMPS_EPCOS_i38.cpp -o /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Marlin_RAMPS_EPCOS_i38.cpp.o
In file included from thermistortables.h:4,
from Configuration.h:371,
from Marlin_RAMPS_EPCOS_i38.ino: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
In file included from Configuration.h:371,
from Marlin_RAMPS_EPCOS_i38.ino:33:
thermistortables.h:213: warning: only initialized variables can be placed into program memory area
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/LiquidCrystal/LiquidCrystal.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/SPI/SPI.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/malloc.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/realloc.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/WInterrupts.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_analog.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_digital.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_pulse.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_shift.c.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/CDC.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/HardwareSerial.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/HID.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/IPAddress.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/main.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/new.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Print.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Stream.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Tone.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/USBCore.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/WMath.cpp.o
Using previously compiled: /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/WString.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/malloc.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/realloc.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/WInterrupts.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_analog.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_digital.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_pulse.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/wiring_shift.c.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/CDC.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/HardwareSerial.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/HID.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/IPAddress.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/main.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/new.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Print.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Stream.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Tone.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/USBCore.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/WMath.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/WString.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega2560 -o /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Marlin_RAMPS_EPCOS_i38.cpp.elf /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/Marlin_RAMPS_EPCOS_i38.cpp.o /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/LiquidCrystal/LiquidCrystal.cpp.o /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/SPI/SPI.cpp.o /var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp/core.a -L/var/folders/g3/0hxv0qgj5m74vjbv074fq2kr0000gn/T/build7838027751905878242.tmp -lm
core.a(main.cpp.o): In function `main':
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:34: undefined reference to `setup'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:44: undefined reference to `loop'
Re: Folger Tec Prusa i3 | Marlin_RAMPS_i38 compile error
March 10, 2015 02:16PM
I'm sure it is some kinda linker error. In any case I got it working in Linux so no rush
Sorry, only registered users may post in this forum.

Click here to login