[arduino]验证是发生错误-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 436|回复: 2

[已解决] [arduino]验证是发生错误

[复制链接]
发表于 2022-2-7 21:02 | 显示全部楼层 |阅读模式
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 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。





发表于 2022-2-7 23:06 | 显示全部楼层
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
帮你翻译下:
您的SERIAL_PORT_2 和SERIAL_PORT设置成一样的了,请更改您的配置
 楼主| 发表于 2022-2-8 16:48 | 显示全部楼层
coloz 发表于 2022-2-7 23:06
#error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
帮你翻 ...

十分感谢您的耐心解答!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 15:44 , Processed in 0.072236 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表