> Executing task: C:\Users\Hunte\.platformio\penv\Scripts\pio.exe run < Processing mega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html PLATFORM: Atmel AVR (3.0.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash DEBUG: Current (avr-stub) On-board (avr-stub, simavr) PACKAGES: - framework-arduino-avr 5.1.0 - toolchain-atmelavr 1.50400.190710 (5.4.0) Converting Marlin.ino LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 7 compatible libraries Scanning dependencies... Dependency Graph |-- 0.7.1 | |-- 1.0 | |-- 1.0 |-- 0.4.3 | |-- 1.0 | |-- 1.0 |-- 1.0 |-- 1.0 |-- 2.0 |-- 1.0 Building in release mode Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o Compiling .pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o Compiling .pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, Compiling .pio\build\mega2560\src\src\HAL\AVR\eeprom.cpp.o Compiling .pio\build\mega2560\src\src\HAL\AVR\fast_pwm.cpp.o Compiling .pio\build\mega2560\src\src\HAL\AVR\fastio.cpp.o from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28, Compiling .pio\build\mega2560\src\src\HAL\AVR\u8g_com_HAL_AVR_sw_spi.cpp.o from Marlin\src\HAL\AVR\HAL.cpp:24: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28, from Marlin\src\HAL\AVR\HAL_SPI.cpp:34: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" Compiling .pio\build\mega2560\src\src\HAL\AVR\watchdog.cpp.o ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28, from Marlin\src\HAL\AVR\Servo.cpp:55: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\u8g_com_HAL_AVR_sw_spi.cpp:58: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" Compiling .pio\build\mega2560\src\src\HAL\shared\HAL_spi_L6470.cpp.o ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\fast_pwm.cpp:24: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28, Compiling .pio\build\mega2560\src\src\HAL\shared\eeprom_api.cpp.o from Marlin\src\HAL\AVR\eeprom.cpp:24: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ In file included from Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\AVR\../../inc/../pins/pins.h:547, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\HAL.cpp:24: Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ In file included from Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\AVR\../../inc/../pins/pins.h:547, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\HAL_SPI.cpp:34: Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ In file included from Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\AVR\../../inc/../pins/pins.h:547, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ cc1plus.exe: warning: unrecognized command line option '-Wno-register' In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28, from Marlin\src\HAL\AVR\watchdog.cpp:24: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\AVR\HAL_SPI.cpp:34: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28, from Marlin\src\HAL\shared\HAL_spi_L6470.cpp:28: Marlin\src\HAL\shared\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ cc1plus.exe: warning: unrecognized command line option '-Wno-register' Marlin\src\HAL\shared\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ In file included from Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\AVR\../../inc/../pins/pins.h:547, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\eeprom.cpp:24: Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\AVR\HAL.cpp:24: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ In file included from Marlin\src\HAL\AVR\../../inc/../HAL/./AVR/HAL.h:32:0, from Marlin\src\HAL\AVR\../../inc/../HAL/HAL.h:26, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:31, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: Marlin\src\HAL\AVR\MarlinSerial.cpp:732:22: error: pasting "USART" and "-" does not give a valid preprocessing token ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) { ^ Marlin\src\HAL\AVR\../../inc/../HAL/./AVR/MarlinSerial.h:55:57: note: in definition of macro '_SERIAL_REGNAME' #define _SERIAL_REGNAME(registerbase,number,suffix) registerbase##number##suffix ^ Marlin\src\HAL\AVR\MarlinSerial.cpp:732:7: note: in expansion of macro 'SERIAL_REGNAME' ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) { ^ cc1plus.exe: warning: unrecognized command line option '-Wno-register' Marlin\src\HAL\AVR\MarlinSerial.cpp:736:22: error: pasting "USART" and "-" does not give a valid preprocessing token ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _UDRE_vect)) { ^ Marlin\src\HAL\AVR\../../inc/../HAL/./AVR/MarlinSerial.h:55:57: note: in definition of macro '_SERIAL_REGNAME' #define _SERIAL_REGNAME(registerbase,number,suffix) registerbase##number##suffix ^ Marlin\src\HAL\AVR\MarlinSerial.cpp:736:7: note: in expansion of macro 'SERIAL_REGNAME' ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _UDRE_vect)) { ^ In file included from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39:0, from Marlin\src\HAL\shared\eeprom_api.cpp:23: Marlin\src\HAL\shared\../../inc/../../Configuration.h:1510:0: warning: "PREHEAT_1_LABEL" redefined #define PREHEAT_1_LABEL "petG" ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1500:0: note: this is the location of the previous definition #define PREHEAT_1_LABEL "PLA" ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1511:0: warning: "PREHEAT_1_TEMP_HOTEND" redefined #define PREHEAT_1_TEMP_HOTEND 220 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1501:0: note: this is the location of the previous definition #define PREHEAT_1_TEMP_HOTEND 185 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1515:0: warning: "PREHEAT_2_LABEL" redefined #define PREHEAT_2_LABEL "Nylon" ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1505:0: note: this is the location of the previous definition #define PREHEAT_2_LABEL "ABS" ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1516:0: warning: "PREHEAT_2_TEMP_HOTEND" redefined #define PREHEAT_2_TEMP_HOTEND 230 ^ In file included from Marlin\src\HAL\shared\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\shared\../../inc/../pins/pins.h:547, from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\shared\HAL_spi_L6470.cpp:28: Marlin\src\HAL\shared\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ In file included from Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\AVR\../../inc/../pins/pins.h:547, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\watchdog.cpp:24: Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\AVR\eeprom.cpp:24: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1506:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_HOTEND 240 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1517:0: warning: "PREHEAT_2_TEMP_BED" redefined #define PREHEAT_2_TEMP_BED 45 ^ Marlin\src\HAL\shared\../../inc/../../Configuration.h:1507:0: note: this is the location of the previous definition #define PREHEAT_2_TEMP_BED 110 ^ *** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o] Error 1 In file included from C:\Users\Hunte\.platformio\packages\framework-arduino-avr\cores\arduino/Arduino.h:30:0, from Marlin\src\HAL\AVR\../../inc/../HAL/./AVR/../shared/Marduino.h:36, from Marlin\src\HAL\AVR\../../inc/../HAL/./AVR/HAL.h:22, from Marlin\src\HAL\AVR\../../inc/../HAL/HAL.h:26, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:31, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: Marlin\src\HAL\AVR\../../inc/../../Configuration.h:114:23: error: expected initializer before '-' token #define SERIAL_PORT_2 -1 ^ Marlin\src\HAL\AVR\../../inc/../HAL/./AVR/MarlinSerial.h:51:54: note: in expansion of macro '_SERIAL_REGNAME' #define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix) ^ Marlin\src\HAL\AVR\MarlinSerial.cpp:732:7: note: in expansion of macro 'SERIAL_REGNAME' ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) { ^ Marlin\src\HAL\AVR\MarlinSerial.cpp:732:29: note: in expansion of macro 'SERIAL_PORT_2' ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) { ^ compilation terminated due to -fmax-errors=5. cc1plus.exe: warning: unrecognized command line option '-Wno-register' In file included from Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h:33:0, from Marlin\src\HAL\AVR\../../inc/../pins/pins.h:547, from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:34, from Marlin\src\HAL\AVR\Servo.cpp:55: Marlin\src\HAL\AVR\../../inc/../pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h:25:4: error: #error "Oops! Select an STM32F1 board in 'Tools > Board.'" #error "Oops! Select an STM32F1 board in 'Tools > Board.'" ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\AVR\watchdog.cpp:24: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ In file included from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\shared\HAL_spi_L6470.cpp:28: Marlin\src\HAL\shared\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ *** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o] Error 1 In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\AVR\Servo.cpp:55: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1627:4: error: #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN." ^ *** [.pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o] Error 1 cc1plus.exe: warning: unrecognized command line option '-Wno-register' cc1plus.exe: warning: unrecognized command line option '-Wno-register' *** [.pio\build\mega2560\src\src\HAL\AVR\eeprom.cpp.o] Error 1 cc1plus.exe: warning: unrecognized command line option '-Wno-register' cc1plus.exe: warning: unrecognized command line option '-Wno-register' cc1plus.exe: warning: unrecognized command line option '-Wno-register' *** [.pio\build\mega2560\src\src\HAL\AVR\watchdog.cpp.o] Error 1 *** [.pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o] Error 1 *** [.pio\build\mega2560\src\src\HAL\shared\HAL_spi_L6470.cpp.o] Error 1 ================================================================================================== [FAILED] Took 16.09 seconds ================================================================================================== Environment Status Duration ------------- -------- ------------ mega2560 FAILED 00:00:16.089 ============================================================================================= 1 failed, 0 succeeded in 00:00:16.089 ============================================================================================= The terminal process "C:\Users\Hunte\.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it.