Welcome! Log In Create A New Profile

Advanced

Compilation error Marlin

Posted by pirat777knj 
Compilation error Marlin
May 23, 2016 01:59AM
All good !
I decided to put myself arduino due.
He faced an unexpected problem . Firmware is compiled with errors . Very large kolichesivom them . Even unmodified . I tried to reinstall the arduino environment . I have downloaded a different version . All to no avail ( What do I do ?
Quote
log
sketch\module\lcd\../../module/HAL/HAL.h:81:142: error: 'DIOLCD_PINS_D4_PIN' was not declared in this scope

   #define  _WRITE(port, v)   do { if (v) {DIO ##  port ## _PORT -> PIO_SODR = DIO ## port ## _PIN; } else {DIO ##  port ## _PORT->PIO_CODR = DIO ## port ## _PIN; }; } while (0)

                                                                                                                                              ^

sketch\module\lcd\../../module/HAL/HAL.h:82:24: note: in expansion of macro '_WRITE'

   #define WRITE(pin,v) _WRITE(pin,v)

                        ^

sketch\module\lcd\../../module/HAL/HAL.h:93:47: note: in expansion of macro 'WRITE'

   #define OUT_WRITE(IO, v)  { SET_OUTPUT(IO); WRITE(IO, v); }

                                               ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:91:7: note: in expansion of macro 'OUT_WRITE'

       OUT_WRITE(ST7920_CLK_PIN, HIGH);

       ^

In file included from sketch\module\lcd\dogm_lcd_implementation.h:64:0,

                 from sketch\module\lcd\ultralcd.cpp:84:

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:33:25: error: 'LCD_PINS_RS' was not declared in this scope

 #define ST7920_CS_PIN   LCD_PINS_RS

                         ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:55:50: note: in expansion of macro 'ST7920_CS_PIN'

   #define ST7920_CS()              {digitalWrite(ST7920_CS_PIN, 1);u8g_10MicroDelay();}

                                                  ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:93:7: note: in expansion of macro 'ST7920_CS'

       ST7920_CS();

       ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:33:25: error: 'LCD_PINS_RS' was not declared in this scope

 #define ST7920_CS_PIN   LCD_PINS_RS

                         ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:56:50: note: in expansion of macro 'ST7920_CS_PIN'

   #define ST7920_NCS()             {digitalWrite(ST7920_CS_PIN, 0);}

                                                  ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:109:7: note: in expansion of macro 'ST7920_NCS'

       ST7920_NCS();

       ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:33:25: error: 'LCD_PINS_RS' was not declared in this scope

 #define ST7920_CS_PIN   LCD_PINS_RS

                         ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:55:50: note: in expansion of macro 'ST7920_CS_PIN'

   #define ST7920_CS()              {digitalWrite(ST7920_CS_PIN, 1);u8g_10MicroDelay();}

                                                  ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:120:7: note: in expansion of macro 'ST7920_CS'

       ST7920_CS();

       ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:33:25: error: 'LCD_PINS_RS' was not declared in this scope

 #define ST7920_CS_PIN   LCD_PINS_RS

                         ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:56:50: note: in expansion of macro 'ST7920_CS_PIN'

   #define ST7920_NCS()             {digitalWrite(ST7920_CS_PIN, 0);}

                                                  ^

sketch\module\lcd\ultralcd_st7920_u8glib_rrd.h:135:7: note: in expansion of macro 'ST7920_NCS'

       ST7920_NCS();

       ^

exit status 1
Ошибка компиляции для платы Arduino Due (Programming Port).
Re: Compilation error Marlin
May 23, 2016 04:53AM
Did you use [github.com] (which is not for due, last I looked)

Or [github.com] which is for due, but no longer supported...
Re: Compilation error Marlin
May 23, 2016 07:16AM
Yes, I have an old version due. I Tried MK4Due. But the result is the same . ( ( (
Re: Compilation error Marlin
May 23, 2016 08:21AM
There are people doing DUE versions of Marlin. But I don't think anything is ready for prime time. It might be worth your while to check out MarlinKimbra. It has a DUE fork and I know the code base is clean.
Re: Compilation error Marlin
May 23, 2016 01:27PM
What then could be the problem ? Java runtime environment can be buggy ?
Re: Compilation error Marlin
May 23, 2016 05:54PM
I don't know the full answer.

But the Fast I/O library is different or doesn't exist on the DUE.

I think you are running into problems because the compiler can't find the declarations (and functions) it needs to compile the code.
Re: Compilation error Marlin
May 24, 2016 01:15AM
This is understandable. It is not clear how to get rid of this muck .
Re: Compilation error Marlin
May 24, 2016 10:06AM
ready to throw off the test firmware ) is already working on the printer .
Sorry, only registered users may post in this forum.

Click here to login