Useful or not, from you.
Marlin [BUG] Build failure SKR 1.3

Compile error with SKR 1.3 on with Visual Studio Code

Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\MarlinSerial.cpp.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\include\digipot_mcp4451_I2C_routines.c.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\main.cpp.o Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\persistent_store_flash.cpp.o In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:33:0, from Marlin\src\HAL\HAL_LPC1768../../core/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../core/serial.h:25, from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/const_functions.h:65:120: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr uint32_t map(uint32_t x, uint32_t in_min, uint32_t in_max, uint32_t out_min, uint32_t out_max) noexcept{ ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:33:0, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:23: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/const_functions.h:65:120: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr uint32_t map(uint32_t x, uint32_t in_min, uint32_t in_max, uint32_t out_min, uint32_t out_max) noexcept{ ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:33:0, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/const_functions.h:65:120: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr uint32_t map(uint32_t x, uint32_t in_min, uint32_t in_max, uint32_t out_min, uint32_t out_max) noexcept{ ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:33:0, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/const_functions.h:65:120: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr uint32_t map(uint32_t x, uint32_t in_min, uint32_t in_max, uint32_t out_min, uint32_t out_max) noexcept{ ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:5:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../core/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../core/serial.h:25, from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:8:64: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto memory_ptr(const std::size_t loc) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:13:65: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto& memory_ref(const std::size_t loc) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:6:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../core/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../core/serial.h:25, from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:8:55: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bit_value(const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:13:72: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr bool bit_test(const Value& val, const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:18:57: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_value(Args... args) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:23:80: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_mask(const Value val, const BitSet bitset) noexcept { ^~~~~~~~ In file included from Marlin\src\HAL\HAL_LPC1768\MarlinSerial.h:24:0, from Marlin\src\HAL\HAL_LPC1768\MarlinSerial.cpp:26: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::begin(uint32_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:161:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'size_t HardwareSerial<RXB_SIZE, TXB_SIZE>::write(uint8_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:204:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: error: expected '}' at end of input } ^ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: warning: no return statement in function returning non-void [-Wreturn-type] C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::flushTX()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:241:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::IRQHandler()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:310:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ compilation terminated due to -fmax-errors=5. In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:134:0, from Marlin\src\HAL\HAL_LPC1768../../core/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../core/serial.h:25, from Marlin\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp:26: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::begin(uint32_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:161:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'size_t HardwareSerial<RXB_SIZE, TXB_SIZE>::write(uint8_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:204:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: error: expected '}' at end of input } ^ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: warning: no return statement in function returning non-void [-Wreturn-type] C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::flushTX()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:241:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::IRQHandler()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:310:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o] Error 1 *** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\MarlinSerial.cpp.o] Error 1 In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:33:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/CDCSerial.h:34, from Marlin\src\HAL\HAL_LPC1768\main.cpp:10: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/const_functions.h:65:120: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr uint32_t map(uint32_t x, uint32_t in_min, uint32_t in_max, uint32_t out_min, uint32_t out_max) noexcept{ ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:5:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:23: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:8:64: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto memory_ptr(const std::size_t loc) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:13:65: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto& memory_ref(const std::size_t loc) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:6:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:23: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:8:55: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bit_value(const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:13:72: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr bool bit_test(const Value& val, const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:18:57: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_value(Args... args) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:23:80: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_mask(const Value val, const BitSet bitset) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:134:0, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:23: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::begin(uint32_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:161:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'size_t HardwareSerial<RXB_SIZE, TXB_SIZE>::write(uint8_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:204:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: error: expected '}' at end of input } ^ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: warning: no return statement in function returning non-void [-Wreturn-type] C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::flushTX()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:241:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::IRQHandler()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:310:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ compilation terminated due to -fmax-errors=5. In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:5:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:8:64: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto memory_ptr(const std::size_t loc) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:13:65: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto& memory_ref(const std::size_t loc) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:6:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:8:55: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bit_value(const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:13:72: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr bool bit_test(const Value& val, const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:18:57: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_value(Args... args) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:23:80: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_mask(const Value val, const BitSet bitset) noexcept { ^~~~~~~~ *** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o] Error 1 In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:134:0, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::begin(uint32_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:161:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'size_t HardwareSerial<RXB_SIZE, TXB_SIZE>::write(uint8_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:204:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: error: expected '}' at end of input } ^ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: warning: no return statement in function returning non-void [-Wreturn-type] C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::flushTX()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:241:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::IRQHandler()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:310:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o] Error 1 In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:5:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:8:64: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto memory_ptr(const std::size_t loc) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:13:65: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto& memory_ref(const std::size_t loc) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:6:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:8:55: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bit_value(const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:13:72: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr bool bit_test(const Value& val, const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:18:57: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_value(Args... args) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:23:80: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_mask(const Value val, const BitSet bitset) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:134:0, from Marlin\src\HAL\HAL_LPC1768../../inc/../HAL/HAL_LPC1768/HAL.h:40, from Marlin\src\HAL\HAL_LPC1768../../inc/MarlinConfig.h:30, from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::begin(uint32_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:161:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'size_t HardwareSerial<RXB_SIZE, TXB_SIZE>::write(uint8_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:204:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: error: expected '}' at end of input } ^ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: warning: no return statement in function returning non-void [-Wreturn-type] C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::flushTX()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:241:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::IRQHandler()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:310:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o] Error 1 In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:5:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/CDCSerial.h:34, from Marlin\src\HAL\HAL_LPC1768\main.cpp:10: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:8:64: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto memory_ptr(const std::size_t loc) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/registers.h:13:65: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto& memory_ref(const std::size_t loc) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/gpio.h:6:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:35, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/CDCSerial.h:34, from Marlin\src\HAL\HAL_LPC1768\main.cpp:10: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:8:55: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bit_value(const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:13:72: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr bool bit_test(const Value& val, const Bit bit) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:18:57: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_value(Args... args) noexcept { ^~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/bit_manipulation.h:23:80: warning: 'nodiscard' attribute directive ignored [-Wattributes] [[nodiscard]] constexpr auto bitset_mask(const Value val, const BitSet bitset) noexcept { ^~~~~~~~ In file included from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/Arduino.h:134:0, from C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/CDCSerial.h:34, from Marlin\src\HAL\HAL_LPC1768\main.cpp:10: C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::begin(uint32_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:161:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'size_t HardwareSerial<RXB_SIZE, TXB_SIZE>::write(uint8_t)': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:204:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: error: expected '}' at end of input } ^ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:238:3: warning: no return statement in function returning non-void [-Wreturn-type] C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::flushTX()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:241:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h: In member function 'void HardwareSerial<RXB_SIZE, TXB_SIZE>::IRQHandler()': C:\users\sashi.platformio\packages\framework-arduino-lpc176x\cores\arduino/HardwareSerial.h:310:8: error: expected '(' before 'constexpr' if constexpr (TXB_SIZE > 0) { ^~~~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\main.cpp.o] Error 1 =============================================================================================== [ERROR] Took 2.84 seconds ===============================================================================================

That's a useful answer
Without any help

Configurations, please Please ZIP up your Configuration.h and Configuration_adv.h files (as requested in the Issue template) and drop them into your next reply. We'll check them over and see if anything is amiss.