Welcome! Log In Create A New Profile

Advanced

compile troubles

Posted by Shohart 
compile troubles
June 08, 2015 08:43AM
hello! i try to compile marlin with full graphic display support for my melzi, but i got error in U8glib (which is installed latest version)

i run windows 8.1. x64 and arduino ide 1.5.8. beta. on non beta versions i got forever compile with no success.
without "full graphic display" it compiles fine.

here is my firmware
[www.dropbox.com]
here is the errorlog
[www.dropbox.com]

please help.
Re: compile troubles
June 09, 2015 01:56AM
I have confirmed this issue...

its the marlin your using.

real marlin from [github.com] set to
#define MOTHERBOARD BOARD_MELZI
and
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

Compiles without issues for a 1284p... (runs out of space on a 644p)
Re: compile troubles
June 09, 2015 10:31PM
thank you, i checked it - you were right.
Re: compile troubles
June 13, 2015 10:50PM
sad to say i have another problems now! when i try to compile firmware for melzi, i got no error now, but compilling bar just freezes, on like 1/4 forever. i gues that it is something to do with sanguino install maybe. i made it like here. i tried it on my mac but got the same result...

Edited 1 time(s). Last edit at 06/13/2015 10:51PM by Shohart.
Re: compile troubles
June 14, 2015 10:23PM
The ide is a bit buggy

Some errors freeze the display instead of displaying the error

Run the ide from the comand line, when it freezes, send the command line a CTRL C, this will kill the ide, but will also show the error its getting hung up on.
Re: compile troubles
June 15, 2015 02:50AM
Done!
come ultralcd pin errors...
In file included from Marlin.h:21:0,
                 from temperature.h:24,
                 from ultralcd.cpp:1:
ultralcd_st7920_u8glib_rrd.h: In function 'void ST7920_SWSPI_SND_8BIT(uint8_t)':
fastio.h:45: error: 'DIOLCD_PINS_D4_RPORT' was not declared in this scope
 #define _WRITE(IO, v)  do {  if (&(DIO ##  IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v
); }; } while (0)
                                    ^
fastio.h:68:23: note: in expansion of macro '_WRITE'
 #define WRITE(IO, v)  _WRITE(IO, v)
                       ^
ultralcd_st7920_u8glib_rrd.h:29:5: note: in expansion of macro 'WRITE'
     WRITE(ST7920_CLK_PIN,0);
     ^
fastio.h:34: error: 'DIOLCD_PINS_D4_WPORT' was not declared in this scope
                                          {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
                                           ^
PS C:\Users\Алексей> fastio.h:45:80: note: in expansion of macro '_WRITE_C'
 #define _WRITE(IO, v)  do {  if (&(DIO ##  IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v
); }; } while (0)
                                                                                ^
fastio.h:68:23: note: in expansion of macro '_WRITE'
 #define WRITE(IO, v)  _WRITE(IO, v)
                       ^
ultralcd_st7920_u8glib_rrd.h:29:5: note: in expansion of macro 'WRITE'
     WRITE(ST7920_CLK_PIN,0);
     ^
In file included from Marlin.h:21:0,
                 from temperature.h:24,
                 from ultralcd.cpp:1:
fastio.h:34: error: 'DIOLCD_PINS_D4_PIN' was not declared in this scope
                                          {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
                                                                        ^
fastio.h:17:26: note: in definition of macro 'MASK'
 #define MASK(PIN)  (1 << PIN)
                          ^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
 #define _WRITE(IO, v)  do {  if (&(DIO ##  IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v
); }; } while (0)
                                                                                ^
fastio.h:68:23: note: in expansion of macro '_WRITE'
 #define WRITE(IO, v)  _WRITE(IO, v)
                       ^
ultralcd_st7920_u8glib_rrd.h:29:5: note: in expansion of macro 'WRITE'
     WRITE(ST7920_CLK_PIN,0);
Re: compile troubles
June 15, 2015 02:53AM
it compiles well for mega2560 (ramps)

Edited 1 time(s). Last edit at 06/15/2015 02:53AM by Shohart.
Re: compile troubles
January 24, 2017 02:15AM
Hi

Im running a Gen7 Board-AVR 1.5 with Marlin-1.1.0-RC7 using arduino 1.81(have also tried previous versions of ardiuno)
it compiles and uploads perfectly untill i enable the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
then i start getting 'DIOLCD_PINS_D4_RPORT' was not declared in this scope.
Re: compile troubles
January 24, 2017 03:21AM
Gen7 has no support for a LCD, so unsurprisingly no pin definitions have been setup for it.

If your trying to hack on the GLCD you going to have to create your own pins.h file

Personally I wouldn’t bother... GLCD's use to much rom (all the fonts have to be stored in there, as well as the graphics data) and when running it uses to many cpu cycles, causing blobs in your print. (if you have a 20mhz crystal, ie 25% faster than a mega2560, you may get away with it, i've not tried that combination)
Sorry, only registered users may post in this forum.

Click here to login