Arduino:1.8.10 (Windows 10), 开发板:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from sketch\src\inc/MarlinConfig.h:49:0,
from sketch\src\MarlinCore.h:24,
from sketch\src\MarlinCore.cpp:31:
sketch\src\inc/SanityCheck.h:600:4: error: #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
^~~~~
In file included from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\marlinconfig.h:49:0,
from sketch\src\HAL\AVR\Servo.cpp:55:
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\SanityCheck.h:600:4: error: #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
^~~~~
In file included from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\marlinconfig.h:49:0,
from sketch\src\HAL\AVR\HAL_SPI.cpp:34:
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\SanityCheck.h:600:4: error: #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
^~~~~
In file included from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\marlinconfig.h:49:0,
from sketch\src\HAL\AVR\eeprom.cpp:24:
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\SanityCheck.h:600:4: error: #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
^~~~~
In file included from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\marlinconfig.h:49:0,
from sketch\src\HAL\AVR\HAL.cpp:24:
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\SanityCheck.h:600:4: error: #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
^~~~~
In file included from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\marlinconfig.h:49:0,
from sketch\src\HAL\AVR\MarlinSerial.cpp:39:
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\SanityCheck.h:600:4: error: #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
^~~~~
In file included from D:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\shared\marduino.h:36,
from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\avr\hal.h:22,
from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\hal.h:26,
from c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\inc\marlinconfig.h:31,
from sketch\src\HAL\AVR\MarlinSerial.cpp:39:
sketch\src\HAL\AVR\MarlinSerial.cpp: In function 'void __vector_25()':
sketch\src\HAL\AVR\MarlinSerial.cpp:732:22: error: redefinition of 'void __vector_25()'
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) {
^
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\avr\MarlinSerial.h:51:54: note: in expansion of macro '_SERIAL_REGNAME'
#define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
^~~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp:732:7: note: in expansion of macro 'SERIAL_REGNAME'
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) {
^~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp:715:20: note: 'void __vector_25()' previously defined here
ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
^
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\avr\MarlinSerial.h:51:54: note: in expansion of macro '_SERIAL_REGNAME'
#define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
^~~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp:715:5: note: in expansion of macro 'SERIAL_REGNAME'
ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
^~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp: In function 'void __vector_26()':
sketch\src\HAL\AVR\MarlinSerial.cpp:736:22: error: redefinition of 'void __vector_26()'
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _UDRE_vect)) {
^
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\avr\MarlinSerial.h:51:54: note: in expansion of macro '_SERIAL_REGNAME'
#define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
^~~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp:736:7: note: in expansion of macro 'SERIAL_REGNAME'
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _UDRE_vect)) {
^~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp:719:20: note: 'void __vector_26()' previously defined here
ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
^
c:\users\administrator\appdata\local\temp\arduino_build_223842\sketch\src\hal\avr\MarlinSerial.h:51:54: note: in expansion of macro '_SERIAL_REGNAME'
#define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
^~~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp:719:5: note: in expansion of macro 'SERIAL_REGNAME'
ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
^~~~~~~~~~~~~~
sketch\src\HAL\AVR\MarlinSerial.cpp: At global scope:
sketch\src\HAL\AVR\MarlinSerial.cpp:741:18: warning: duplicate explicit instantiation of 'class MarlinSerial<MarlinSerialCfg<0> >' [-fpermissive]
template class MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"LiquidCrystal.h" 对应多个库
已使用: d:\Program
exit status 1
为开发板 Arduino/Genuino Mega or Mega 2560 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|