Кремень FMZ Реклама
Kremen FMHM Реклама

Ошибка компиляции Marlin 2.0

vin2s
Идет загрузка
Загрузка
22.09.2019
7044
22
Вопросы и ответы

Всем привет, что то словил ошибку при компиляции прошивки Marlin 2.0

---------------------------------------------------------------------------------------------

Arduino: 1.8.10 (Windows 10), Плата:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\marlinconfig.h:41:0,

                 from sketch\src\HAL\HAL_AVR\HAL_spi_AVR.cpp:38:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\SanityCheck.h:1701:5: error: non-constant condition for static assertion

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

     ^~~~~~~~~~~~~

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:47:0,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\hal.h:36,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\marlinconfig.h:30,

                 from sketch\src\HAL\HAL_AVR\HAL_spi_AVR.cpp:38:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_1280.h:338:21: error: reinterpret_cast from integer to pointer

 #define DIO44_PWM &OCR5CL

                     ^

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:86:31: note: in expansion of macro 'DIO44_PWM'

 #define _GET_TIMER(IO) DIO ## IO ## _PWM

                               ^~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:107:31: note: in expansion of macro '_GET_TIMER'

 #define GET_TIMER(IO) _GET_TIMER(IO)

                               ^~~~~~~~~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\SanityCheck.h:1701:19: note: in expansion of macro 'GET_TIMER'

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

                   ^~~~~~~~~

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\marlinconfig.h:41:0,

                 from sketch\src\HAL\HAL_AVR\HAL.cpp:29:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\SanityCheck.h:1701:5: error: non-constant condition for static assertion

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

     ^~~~~~~~~~~~~

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:47:0,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\hal.h:36,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\marlinconfig.h:30,

                 from sketch\src\HAL\HAL_AVR\HAL.cpp:29:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_1280.h:338:21: error: reinterpret_cast from integer to pointer

 #define DIO44_PWM &OCR5CL

                     ^

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:86:31: note: in expansion of macro 'DIO44_PWM'

 #define _GET_TIMER(IO) DIO ## IO ## _PWM

                               ^~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:107:31: note: in expansion of macro '_GET_TIMER'

 #define GET_TIMER(IO) _GET_TIMER(IO)

                               ^~~~~~~~~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\SanityCheck.h:1701:19: note: in expansion of macro 'GET_TIMER'

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

                   ^~~~~~~~~

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\marlinconfig.h:41:0,

                 from sketch\src\HAL\HAL_AVR\MarlinSerial.cpp:39:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\SanityCheck.h:1701:5: error: non-constant condition for static assertion

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

     ^~~~~~~~~~~~~

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:47:0,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\hal.h:36,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\marlinconfig.h:30,

                 from sketch\src\HAL\HAL_AVR\MarlinSerial.cpp:39:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_1280.h:338:21: error: reinterpret_cast from integer to pointer

 #define DIO44_PWM &OCR5CL

                     ^

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:86:31: note: in expansion of macro 'DIO44_PWM'

 #define _GET_TIMER(IO) DIO ## IO ## _PWM

                               ^~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:107:31: note: in expansion of macro '_GET_TIMER'

 #define GET_TIMER(IO) _GET_TIMER(IO)

                               ^~~~~~~~~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\inc\SanityCheck.h:1701:19: note: in expansion of macro 'GET_TIMER'

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

                   ^~~~~~~~~

In file included from sketch\src\inc/MarlinConfig.h:41:0,

                 from sketch\src\Marlin.h:24,

                 from sketch\src\Marlin.cpp:31:

sketch\src\inc/SanityCheck.h:1701:5: error: non-constant condition for static assertion

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

     ^~~~~~~~~~~~~

In file included from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:47:0,

                 from c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\hal.h:36,

                 from sketch\src\inc/MarlinConfig.h:30,

                 from sketch\src\Marlin.h:24,

                 from sketch\src\Marlin.cpp:31:

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_1280.h:338:21: error: reinterpret_cast from integer to pointer

 #define DIO44_PWM &OCR5CL

                     ^

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:86:31: note: in expansion of macro 'DIO44_PWM'

 #define _GET_TIMER(IO) DIO ## IO ## _PWM

                               ^~~

c:\users\user\appdata\local\temp\arduino_build_26809\sketch\src\hal\hal_avr\fastio_AVR.h:107:31: note: in expansion of macro '_GET_TIMER'

 #define GET_TIMER(IO) _GET_TIMER(IO)

                               ^~~~~~~~~~

sketch\src\inc/SanityCheck.h:1701:19: note: in expansion of macro 'GET_TIMER'

     static_assert(GET_TIMER(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);

                   ^~~~~~~~~

Несколько библиотек найдено для "U8glib.h"

 Используется: C:\Users\User\Documents\Arduino\libraries\U8glib

Несколько библиотек найдено для "LiquidCrystal.h"

 Используется: C:\Arduino\libraries\LiquidCrystal

exit status 1

Ошибка компиляции для платы Arduino/Genuino Mega or Mega 2560.

Этот отчёт будет иметь больше информации с

включенной опцией Файл -> Настройки ->

"Показать подробный вывод во время компиляции"

-------------------------------------------------------

Пробовал другие прошивки и версии ардуино, та же ошибка, в чем может быть дело?

PS Кстати, прошивка репитер компилируется нормально...

Ответы на вопросы