Aller au contenu

GO Print

Probleme televersement Marlin


Gweno

Messages recommandés

Je ne sais pas si tu l'avais vu, je viens de trouver les sources Marlin V2.0.7.2 de ta brêle. Devine quoi, ils ont paramétré ça:

#define SERIAL_PORT -1
#define SERIAL_PORT_2 0
#define BAUDRATE 250000

En passant, dans ton fichier configuration.h, tu n'as pas activé le lecteur de carte SD:

#define SDSUPPORT

du coup, dans le fichier configuration_adv.h, il faudra choisir entre #define SDCARD_CONNECTION LCD et #define SDCARD_CONNECTION ONBOARD

Tu peux aussi passer les menus en français:

#define LCD_LANGUAGE fr

#define DISPLAY_CHARSET_HD44780 WESTERN

Remarque: la version V2.0.8.x est trop récente pour être stable. Elle est passée à la V2.0.8.2 il y a 2 jours. La V2.0.7.2 me semble plus sûre pour l'instant.😉

Modifié (le) par remibora
  • J'aime 2
Lien vers le commentaire
Partager sur d’autres sites

Bon donc j'ai récupéré le 2.0.7.2. Toujours pareil. Pas d'affichage. 

Ca rend fou quand même. 

Quand via pronterface je fais M250, je vois pourtant que le contraste est à 195. 

EDIT : MERCIIIII! Comme un idiot, avec toutes mes manips, j'avais oublié de décommenter #define MKS_MINI_12864 😕 

Désolé pour la qualité des photos, j'étais trop excité 🙂

 

Punaise! Je vais bien garder ma release, et la partager pour ceux qui ont la même config que moi! 

Je vais pourvoir m'attaquer à tous mes problèmes hardware maintenant 🙂

..et ouvrir un autre post.. 😕

franchement @remibora si je pouvais je te ferai un gros câlin dans le respect des distanciations sociales 😄 

unnamed1.jpg

unnamed2.jpg

Modifié (le) par nyarlath
At last!
  • J'aime 1
  • Haha 1
Lien vers le commentaire
Partager sur d’autres sites

  • 3 months later...

Bonjour !

Je peux me joindre à ceux qui ont des soucis de téléversement ? J'ai monté un BL touch, j'ai découvert qu'il n'existait plus aucun firmware "prêt à porter" sur le web et donc j'ai pris le tout dernier Marlin 2.0.9.1 et travaillé à l'ancienne... en comparant le fieux firmware que j'ai au nouveau et en plissant très fort les yeux.

Mais pour le coup, je ne comprends absolument pas le résultat catastrophique que j'ai en retour de compilation !

Révélation

Arduino : 1.8.16 (Windows 10), Carte : "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"











In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:560:20: error: pasting "USART" and "-" does not give a valid preprocessing token
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
                    ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:56:57: note: in definition of macro '_SERIAL_REGNAME'
     #define _SERIAL_REGNAME(registerbase,number,suffix) registerbase##number##suffix
                                                         ^~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:560:5: note: in expansion of macro 'SERIAL_REGNAME'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
     ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:564:20: error: pasting "USART" and "-" does not give a valid preprocessing token
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
                    ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:56:57: note: in definition of macro '_SERIAL_REGNAME'
     #define _SERIAL_REGNAME(registerbase,number,suffix) registerbase##number##suffix
                                                         ^~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:564:5: note: in expansion of macro 'SERIAL_REGNAME'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
     ^~~~~~~~~~~~~~
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
                 from C:\Arduino\Marlin\src\HAL\shared\Marduino.h:36,
                 from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:22,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Configuration.h:105:21: error: expected initializer before '-' token
 #define SERIAL_PORT -1
                     ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:52:54: note: in expansion of macro '_SERIAL_REGNAME'
   #define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
                                                      ^~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:560:5: note: in expansion of macro 'SERIAL_REGNAME'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
     ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:560:27: note: in expansion of macro 'SERIAL_PORT'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
                           ^~~~~~~~~~~
Configuration.h:105:21: error: expected initializer before '-' token
 #define SERIAL_PORT -1
                     ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:52:54: note: in expansion of macro '_SERIAL_REGNAME'
   #define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
                                                      ^~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:560:5: note: in expansion of macro 'SERIAL_REGNAME'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
     ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:560:27: note: in expansion of macro 'SERIAL_PORT'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
                           ^~~~~~~~~~~
Configuration.h:105:21: error: expected initializer before '-' token
 #define SERIAL_PORT -1
                     ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:52:54: note: in expansion of macro '_SERIAL_REGNAME'
   #define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
                                                      ^~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:564:5: note: in expansion of macro 'SERIAL_REGNAME'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
     ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:564:27: note: in expansion of macro 'SERIAL_PORT'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
                           ^~~~~~~~~~~
Configuration.h:105:21: error: expected initializer before '-' token
 #define SERIAL_PORT -1
                     ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:52:54: note: in expansion of macro '_SERIAL_REGNAME'
   #define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
                                                      ^~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:564:5: note: in expansion of macro 'SERIAL_REGNAME'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
     ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:564:27: note: in expansion of macro 'SERIAL_PORT'
 ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
                           ^~~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const R_UCSRxA<255> MarlinSerial<MarlinSerialCfg<255> >::R_UCSRA':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:149:42: error: conversion from 'int' to non-scalar type 'const R_UCSRxA<255>' requested
     static constexpr R_UCSRxA<Cfg::PORT> R_UCSRA = 0;
                                          ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const R_UDRx<255> MarlinSerial<MarlinSerialCfg<255> >::R_UDR':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:150:42: error: conversion from 'int' to non-scalar type 'const R_UDRx<255>' requested
     static constexpr R_UDRx<Cfg::PORT>   R_UDR   = 0;
                                          ^~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const R_UBRRxH<255> MarlinSerial<MarlinSerialCfg<255> >::R_UBRRH':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:151:42: error: conversion from 'int' to non-scalar type 'const R_UBRRxH<255>' requested
     static constexpr R_UBRRxH<Cfg::PORT> R_UBRRH = 0;
                                          ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const R_UBRRxL<255> MarlinSerial<MarlinSerialCfg<255> >::R_UBRRL':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:152:42: error: conversion from 'int' to non-scalar type 'const R_UBRRxL<255>' requested
     static constexpr R_UBRRxL<Cfg::PORT> R_UBRRL = 0;
                                          ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_RXENx<255> MarlinSerial<MarlinSerialCfg<255> >::B_RXEN':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:155:42: error: conversion from 'int' to non-scalar type 'const B_RXENx<255>' requested
     static constexpr B_RXENx<Cfg::PORT>  B_RXEN  = 0;
                                          ^~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_TXENx<255> MarlinSerial<MarlinSerialCfg<255> >::B_TXEN':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:156:42: error: conversion from 'int' to non-scalar type 'const B_TXENx<255>' requested
     static constexpr B_TXENx<Cfg::PORT>  B_TXEN  = 0;
                                          ^~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_TXCx<255> MarlinSerial<MarlinSerialCfg<255> >::B_TXC':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:157:42: error: conversion from 'int' to non-scalar type 'const B_TXCx<255>' requested
     static constexpr B_TXCx<Cfg::PORT>   B_TXC   = 0;
                                          ^~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_RXCIEx<255> MarlinSerial<MarlinSerialCfg<255> >::B_RXCIE':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:158:42: error: conversion from 'int' to non-scalar type 'const B_RXCIEx<255>' requested
     static constexpr B_RXCIEx<Cfg::PORT> B_RXCIE = 0;
                                          ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_UDREx<255> MarlinSerial<MarlinSerialCfg<255> >::B_UDRE':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:159:42: error: conversion from 'int' to non-scalar type 'const B_UDREx<255>' requested
     static constexpr B_UDREx<Cfg::PORT>  B_UDRE  = 0;
                                          ^~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_FEx<255> MarlinSerial<MarlinSerialCfg<255> >::B_FE':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:160:42: error: conversion from 'int' to non-scalar type 'const B_FEx<255>' requested
     static constexpr B_FEx<Cfg::PORT>    B_FE    = 0;
                                          ^~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_DORx<255> MarlinSerial<MarlinSerialCfg<255> >::B_DOR':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:161:42: error: conversion from 'int' to non-scalar type 'const B_DORx<255>' requested
     static constexpr B_DORx<Cfg::PORT>   B_DOR   = 0;
                                          ^~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_UDRIEx<255> MarlinSerial<MarlinSerialCfg<255> >::B_UDRIE':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:162:42: error: conversion from 'int' to non-scalar type 'const B_UDRIEx<255>' requested
     static constexpr B_UDRIEx<Cfg::PORT> B_UDRIE = 0;
                                          ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_RXCx<255> MarlinSerial<MarlinSerialCfg<255> >::B_RXC':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:163:42: error: conversion from 'int' to non-scalar type 'const B_RXCx<255>' requested
     static constexpr B_RXCx<Cfg::PORT>   B_RXC   = 0;
                                          ^~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h: In instantiation of 'constexpr const B_U2Xx<255> MarlinSerial<MarlinSerialCfg<255> >::B_U2X':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:164:42: error: conversion from 'int' to non-scalar type 'const B_U2Xx<255>' requested
     static constexpr B_U2Xx<Cfg::PORT>   B_U2X   = 0;
                                          ^~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::store_rxd_char() [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:139:23: error: no match for 'operator&&' (operand types are 'const bool' and 'const B_DORx<255>')
   if (Cfg::DROPPED_RX && B_DOR && !++rx_dropped_bytes) --rx_dropped_bytes;
       ~~~~~~~~~~~~~~~~^~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:139:23: note: candidate: operator&&(bool, bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:139:23: note:   no known conversion for argument 2 from 'const B_DORx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:140:24: error: no match for 'operator&&' (operand types are 'const bool' and 'const B_DORx<255>')
   if (Cfg::RX_OVERRUNS && B_DOR && !++rx_buffer_overruns) --rx_buffer_overruns;
       ~~~~~~~~~~~~~~~~~^~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:140:24: note: candidate: operator&&(bool, bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:140:24: note:   no known conversion for argument 2 from 'const B_DORx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:141:30: error: no match for 'operator&&' (operand types are 'const bool' and 'const B_FEx<255>')
   if (Cfg::RX_FRAMING_ERRORS && B_FE && !++rx_framing_errors) --rx_framing_errors;
       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:141:30: note: candidate: operator&&(bool, bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:141:30: note:   no known conversion for argument 2 from 'const B_FEx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:144:11: error: cannot convert 'const R_UDRx<255>' to 'uint8_t {aka unsigned char}' in initialization
   uint8_t c = R_UDR;
           ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:205:16: error: no match for 'operator!' (operand type is 'const B_UDREx<255>')
         while (!B_UDRE) {
                ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:205:16: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:205:16: note:   no known conversion for argument 1 from 'const B_UDREx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:207:11: error: could not convert 'MarlinSerial<MarlinSerialCfg<255> >::B_RXC' from 'const B_RXCx<255>' to 'bool'
           if (B_RXC) {
           ^~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:213:15: error: cannot convert 'const R_UDRx<255>' to 'uint8_t {aka unsigned char}' in assignment
             c = R_UDR;
             ~~^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:230:15: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
         R_UDR = XOFF_CHAR;
         ~~~~~~^~~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:235:15: error: no match for 'operator=' (operand types are 'const B_TXCx<255>' and 'int')
         B_TXC = 1;
         ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(const B_TXCx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_TXCx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(B_TXCx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_TXCx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:244:16: error: no match for 'operator!' (operand type is 'const B_UDREx<255>')
         while (!B_UDRE) {
                ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:244:16: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:244:16: note:   no known conversion for argument 1 from 'const B_UDREx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:246:11: error: could not convert 'MarlinSerial<MarlinSerialCfg<255> >::B_RXC' from 'const B_RXCx<255>' to 'bool'
           if (B_RXC) {
           ^~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:252:15: error: cannot convert 'const R_UDRx<255>' to 'uint8_t {aka unsigned char}' in assignment
             c = R_UDR;
             ~~^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::_tx_udr_empty_irq() [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:293:15: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
         R_UDR = XON_CHAR;
         ~~~~~~^~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:298:15: error: no match for 'operator=' (operand types are 'const B_TXCx<255>' and 'int')
         B_TXC = 1;
         ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(const B_TXCx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_TXCx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(B_TXCx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_TXCx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:304:29: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
         if (h == t) B_UDRIE = 0; // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
                     ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:314:15: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
       B_UDRIE = 0; // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
       ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:321:11: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
     R_UDR = c;
     ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:326:11: error: no match for 'operator=' (operand types are 'const B_TXCx<255>' and 'int')
     B_TXC = 1;
     ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(const B_TXCx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_TXCx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(B_TXCx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_TXCx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:329:25: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
     if (h == t) B_UDRIE = 0; // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
                 ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::begin(long int) [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:346:11: error: no match for 'operator=' (operand types are 'const R_UCSRxA<255>' and 'int')
   R_UCSRA = 0;
   ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UCSRxA<255>& R_UCSRxA<255>::operator=(const R_UCSRxA<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:91:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UCSR,A);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'int' to 'const R_UCSRxA<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:91:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UCSR,A);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UCSRxA<255>& R_UCSRxA<255>::operator=(R_UCSRxA<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:91:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UCSR,A);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'int' to 'R_UCSRxA<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:91:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UCSR,A);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:348:11: error: no match for 'operator=' (operand types are 'const B_U2Xx<255>' and 'int')
     B_U2X = 1;
     ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_U2Xx<255>& B_U2Xx<255>::operator=(const B_U2Xx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:104:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,U2X)
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_U2Xx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:104:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,U2X)
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_U2Xx<255>& B_U2Xx<255>::operator=(B_U2Xx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:104:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,U2X)
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_U2Xx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:104:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,U2X)
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:355:11: error: no match for 'operator=' (operand types are 'const R_UBRRxH<255>' and 'uint16_t {aka unsigned int}')
   R_UBRRH = baud_setting >> 8;
   ~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UBRRxH<255>& R_UBRRxH<255>::operator=(const R_UBRRxH<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:93:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,H);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'uint16_t {aka unsigned int}' to 'const R_UBRRxH<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:93:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,H);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UBRRxH<255>& R_UBRRxH<255>::operator=(R_UBRRxH<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:93:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,H);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'uint16_t {aka unsigned int}' to 'R_UBRRxH<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:93:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,H);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:356:11: error: no match for 'operator=' (operand types are 'const R_UBRRxL<255>' and 'uint16_t {aka unsigned int}')
   R_UBRRL = baud_setting;
   ~~~~~~~~^~~~~~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UBRRxL<255>& R_UBRRxL<255>::operator=(const R_UBRRxL<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:94:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,L);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'uint16_t {aka unsigned int}' to 'const R_UBRRxL<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:94:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,L);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UBRRxL<255>& R_UBRRxL<255>::operator=(R_UBRRxL<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:94:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,L);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'uint16_t {aka unsigned int}' to 'R_UBRRxL<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:94:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UBRR,L);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:358:10: error: no match for 'operator=' (operand types are 'const B_RXENx<255>' and 'int')
   B_RXEN = 1;
   ~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXENx<255>& B_RXENx<255>::operator=(const B_RXENx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_RXENx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXENx<255>& B_RXENx<255>::operator=(B_RXENx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_RXENx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:359:10: error: no match for 'operator=' (operand types are 'const B_TXENx<255>' and 'int')
   B_TXEN = 1;
   ~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXENx<255>& B_TXENx<255>::operator=(const B_TXENx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_TXENx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXENx<255>& B_TXENx<255>::operator=(B_TXENx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_TXENx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:360:11: error: no match for 'operator=' (operand types are 'const B_RXCIEx<255>' and 'int')
   B_RXCIE = 1;
   ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXCIEx<255>& B_RXCIEx<255>::operator=(const B_RXCIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_RXCIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXCIEx<255>& B_RXCIEx<255>::operator=(B_RXCIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_RXCIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:361:33: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
   if (Cfg::TX_SIZE > 0) B_UDRIE = 0;
                         ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::end() [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:367:10: error: no match for 'operator=' (operand types are 'const B_RXENx<255>' and 'int')
   B_RXEN = 0;
   ~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXENx<255>& B_RXENx<255>::operator=(const B_RXENx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_RXENx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXENx<255>& B_RXENx<255>::operator=(B_RXENx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_RXENx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:95:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:368:10: error: no match for 'operator=' (operand types are 'const B_TXENx<255>' and 'int')
   B_TXEN = 0;
   ~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXENx<255>& B_TXENx<255>::operator=(const B_TXENx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_TXENx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXENx<255>& B_TXENx<255>::operator=(B_TXENx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_TXENx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:96:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,TXEN);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:369:11: error: no match for 'operator=' (operand types are 'const B_RXCIEx<255>' and 'int')
   B_RXCIE = 0;
   ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXCIEx<255>& B_RXCIEx<255>::operator=(const B_RXCIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_RXCIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_RXCIEx<255>& B_RXCIEx<255>::operator=(B_RXCIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_RXCIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:98:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:370:11: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
   B_UDRIE = 0;
   ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static int MarlinSerial<Cfg>::read() [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:407:19: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
           B_UDRIE = 1;
           ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:412:18: error: no match for 'operator!' (operand type is 'const B_UDREx<255>')
           while (!B_UDRE) sw_barrier();
                  ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:412:18: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:412:18: note:   no known conversion for argument 1 from 'const B_UDREx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:413:17: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
           R_UDR = XON_CHAR;
           ~~~~~~^~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::flush() [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:444:17: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
         B_UDRIE = 1;
         ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:449:16: error: no match for 'operator!' (operand type is 'const B_UDREx<255>')
         while (!B_UDRE) sw_barrier();
                ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:449:16: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:449:16: note:   no known conversion for argument 1 from 'const B_UDREx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:450:15: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
         R_UDR = XON_CHAR;
         ~~~~~~^~~~~~~~~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::write(uint8_t) [with Cfg = MarlinSerialCfg<255>; uint8_t = unsigned char]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:461:12: error: no match for 'operator!' (operand type is 'const B_UDREx<255>')
     while (!B_UDRE) sw_barrier();
            ^~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:461:12: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:461:12: note:   no known conversion for argument 1 from 'const B_UDREx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:462:11: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
     R_UDR = c;
     ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:476:9: error: no match for 'operator!' (operand type is 'const B_UDRIEx<255>')
     if (!B_UDRIE && B_UDRE) {
         ^~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:476:9: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:476:9: note:   no known conversion for argument 1 from 'const B_UDRIEx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:477:13: error: no match for 'operator=' (operand types are 'const R_UDRx<255>' and 'const uint8_t {aka const unsigned char}')
       R_UDR = c;
       ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(const R_UDRx<255>&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'const R_UDRx<255>&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note: candidate: R_UDRx<255>& R_UDRx<255>::operator=(R_UDRx<255>&&)
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:63:33: note:   no known conversion for argument 1 from 'const uint8_t {aka const unsigned char}' to 'R_UDRx<255>&&'
     template<int portNr> struct R_##registerbase##x##suffix {}
                                 ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:92:5: note: in expansion of macro 'UART_REGISTER_DECL_BASE'
     UART_REGISTER_DECL_BASE(UDR,);\
     ^~~~~~~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:482:13: error: no match for 'operator=' (operand types are 'const B_TXCx<255>' and 'int')
       B_TXC = 1;
       ~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(const B_TXCx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_TXCx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_TXCx<255>& B_TXCx<255>::operator=(B_TXCx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_TXCx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:97:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,A,TXC);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:495:9: error: could not convert 'MarlinSerial<MarlinSerialCfg<255> >::B_UDRE' from 'const B_UDREx<255>' to 'bool'
         if (B_UDRE) _tx_udr_empty_irq();
         ^~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:511:13: error: no match for 'operator=' (operand types are 'const B_UDRIEx<255>' and 'int')
     B_UDRIE = 1;
     ~~~~~~~~^~~
In file included from C:\Arduino\Marlin\src\HAL\AVR\HAL.h:32:0,
                 from C:\Arduino\Marlin\src\HAL\HAL.h:30,
                 from C:\Arduino\Marlin\src\inc\MarlinConfig.h:31,
                 from C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(const B_UDRIEx<255>&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'const B_UDRIEx<255>&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note: candidate: B_UDRIEx<255>& B_UDRIEx<255>::operator=(B_UDRIEx<255>&&)
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:75:32: note:   no known conversion for argument 1 from 'int' to 'B_UDRIEx<255>&&'
     template<int portNr>struct B_##bit##x {}
                                ^
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:102:5: note: in expansion of macro 'UART_BIT_DECL_BASE'
     UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
     ^~~~~~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.h:123:3: note: in expansion of macro 'UART_DECL_BASE'
   UART_DECL_BASE();
   ^~~~~~~~~~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp: In instantiation of 'static void MarlinSerial<Cfg>::flushTX() [with Cfg = MarlinSerialCfg<255>]':
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:569:16:   required from here
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:524:12: error: no match for 'operator!' (operand type is 'const B_TXCx<255>')
     while (!B_TXC) sw_barrier();
            ^~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:524:12: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:524:12: note:   no known conversion for argument 1 from 'const B_TXCx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:540:50: error: no match for 'operator!' (operand type is 'const B_TXCx<255>')
       while (tx_buffer.head != tx_buffer.tail || !B_TXC) {
                                                  ^~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:540:50: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:540:50: note:   no known conversion for argument 1 from 'const B_TXCx<255>' to 'bool'
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:543:9: error: could not convert 'MarlinSerial<MarlinSerialCfg<255> >::B_UDRE' from 'const B_UDREx<255>' to 'bool'
         if (B_UDRE) _tx_udr_empty_irq();
         ^~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:551:50: error: no match for 'operator!' (operand type is 'const B_TXCx<255>')
       while (tx_buffer.head != tx_buffer.tail || !B_TXC) sw_barrier();
                                                  ^~~~~~
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:551:50: note: candidate: operator!(bool) <built-in>
C:\Arduino\Marlin\src\HAL\AVR\MarlinSerial.cpp:551:50: note:   no known conversion for argument 1 from 'const B_TXCx<255>' to 'bool'
exit status 1
expected initializer before '-' token


Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
 

Révélation

 

 

 

Marlin.ino

Lien vers le commentaire
Partager sur d’autres sites

Salutation @Wapata !

Donc tu semble pour utiliser Arduino IDE si tu compile bien pour du 8bits (se qui semble le cas pour un ATmega2560) ( https://marlinfw.org/docs/basics/install.html#build-and-install ) mais ...

 

A tu testé avec VSCode + PlatformIO + Auto Build Marlin (de plus PlatformIO va télécharger automatiquement les libs ... enfin si il m'y a pas de problème de version et d'alias avec Python 3 ... )

https://marlinfw.org/docs/basics/install_platformio.html

 

Sinon pour Arduino IDE, peut être en modifiant la version de l'environnement bar des menu, Outils, Type de cartes ... , Gestionnaire de carte. et la sélectionner une version 1.6.23 ? pour Arduino AVR Boards.

 

Tiens nous au jus et bonne continuation.

Modifié (le) par PPAC
Lien vers le commentaire
Partager sur d’autres sites

Merci pour ton retour ! J'ai essayé PlatformIO et j'ai trouvé ça horrible... mais j'utilise.

Cependant et a mon grand étonnement, j'ai changé la com de -1 à 1 et pouf la compilation a été un succès. Juste que j'ai du laisser un couac car Z refuse de bouger pour descendre toucher le BLTouch (mais fonctionne en manuel).

J'ai inversé Zmin et Zmax dans la définition de la carte et ca fonctionne  !! Yeah !

Modifié (le) par Wapata
Lien vers le commentaire
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
  • Sur cette page :   0 membre est en ligne

    • Aucun utilisateur enregistré regarde cette page.
  • YouTube / Les Imprimantes 3D .fr

×
×
  • Créer...