Welcome! Log In Create A New Profile

Advanced

Marlin 1.1.0 - RC3 on Prusa i3

Posted by Stratyk 
Marlin 1.1.0 - RC3 on Prusa i3
January 16, 2016 06:51PM
The other day I was trying to set up the Discount RepRap Full Graphic LCD on my Folgertech Prusa i3, and I came across that the version of Marlin I was running did not natively support the large display. I decided rather than tweak the firmware a bit, I would just go ahead and install the latest version of Marlin 1.1.0 RC3. I was able to get the display working, although I was missing a bunch of menu items I've seen some other people have (maybe I didn't uncomment a few things in the firmware), but my biggest issue was that when I tried to home all the axis, the steppers went a little crazy. I have gone back to the original firmware for now, but plan to investigate what happened shortly. I was wondering though, has anybody with the Prusa i3 from Folgertech, running Marlin_RAMPS_EPCOS_i38 tried upgrading their firmware to the newest RC, and if they experienced any difficulties? Thanks in advance.
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 17, 2016 04:31AM
I can't even get marlin 1.1.0 to compile!
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 20, 2016 12:45PM
Quote
DjDemonD
I can't even get marlin 1.1.0 to compile!

Where is it failing to compile? What version of Arduino are you using? Are you using older Configuration.h and Configuration_adv.h files, or did you start with the latest and edit them?

Edited 1 time(s). Last edit at 01/20/2016 12:45PM by Thinkyhead.


|
| Lead Developer of Marlin Firmware
| Help support my work at Patreon and Elsewhere.
|
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 21, 2016 06:13PM
I've tried arduino 1.05 1.50 and 1.67. I've fully setup the config files in the new version, I'm not using any older files. The errors are multiple but always along the lines of a particular line has no operand. Sorry I don't have the full error output I'm not at home. Will post it later.
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 22, 2016 11:33AM
This is the verbose output from Arduino 1.6.0

Arduino: 1.6.0 (Windows 8), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Using library Wire in folder: C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire

Using library LiquidCrystal in folder: C:\Program Files\Arduino\libraries\LiquidCrystal

Using library SPI in folder: C:\Program Files\Arduino\hardware\arduino\avr\libraries\SPI



C:\Program Files\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files\Arduino\libraries\LiquidCrystal\src -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SPI C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\blinkm.cpp -o C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\blinkm.cpp.o

In file included from C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\Conditionals.h:221:0,
from C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\Configuration_adv.h:600,
from C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\Configuration.h:857,
from C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\Marlin.h:26,
from C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\blinkm.cpp:5:
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:85:25: error: operator '-' has no right operand
#define max(a,b) ((a)>(b)?(a)sad smileyb))
^
C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\Conditionals.h:282:26: note: in expansion of macro 'max'
#define MIN_PROBE_Y (max(Y_MIN_POS, Y_MIN_POS + Y_PROBE_OFFSET_FROM_EXTRUDER))
^
C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\SanityCheck.h:182:40: note: in expansion of macro 'MIN_PROBE_Y'
#elif FRONT_PROBE_BED_POSITION < MIN_PROBE_Y
^
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:84:25: error: operator '-' has no right operand
#define min(a,b) ((a)<(b)?(a)sad smileyb))
^
C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\Conditionals.h:283:26: note: in expansion of macro 'min'
#define MAX_PROBE_Y (min(Y_MAX_POS, Y_MAX_POS + Y_PROBE_OFFSET_FROM_EXTRUDER))
^
C:\Users\djdem\AppData\Local\Temp\build163905292410751289.tmp\SanityCheck.h:184:39: note: in expansion of macro 'MAX_PROBE_Y'
#elif BACK_PROBE_BED_POSITION > MAX_PROBE_Y
^
Error compiling.
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 26, 2016 01:58AM
Quote
DjDemonD
This is the verbose output from Arduino 1.6.0...

The issue appears to be that we can't use the min() macro inside of a precompiler #if statement. However, I'm using Arduino 1.6.6, and it compiles it without any problem!
Plus, the error you're getting is "operator '-' has no right operand" which indicates the arguments being passed to min() are the real culprit.
So, what values have you set for Y_MAX_POS and Y_PROBE_OFFSET_FROM_EXTRUDER?

If you can't find those settings, I recommend starting with clean Configuration.h and Configuration_adv.h files, then just bring in all modifications from your existing config files.

Edited 4 time(s). Last edit at 01/26/2016 02:07AM by Thinkyhead.
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 26, 2016 08:22AM
Thanks for the help. I did use clean config files for this and changed all the values to the ones I'm using on Marlin 1.0.2. I have tried arudino 1.6.6 also, but I will have a look at the y_max and y_probe values and see if it makes a difference changing them.
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 26, 2016 09:18PM
Quote
DjDemonD
…I will have a look at the y_max and y_probe values and see if it makes a difference changing them.

Cool. I suspect that the value of Y_PROBE_OFFSET_FROM_EXTRUDER might be an empty string or a floating-point value instead of an integer. It must be an integer.
Re: Marlin 1.1.0 - RC3 on Prusa i3
January 27, 2016 05:36PM
Compiled thanks for the help, my y-probe-offset read -2- not -20.
Sorry, only registered users may post in this forum.

Click here to login