AlexGyver / GyverCore

Быстрое ядро для Arduino IDE
https://alexgyver.ru/gyvercore/
GNU Lesser General Public License v3.0
127 stars 13 forks source link

Ошибка при замене Serial быстрым uart #8

Closed RadmirT closed 4 years ago

RadmirT commented 4 years ago

Включаю опцию "Serial : GyverUART" image И компилирую простой скетч:

void setup() {
 Serial.println("start!");
}

void loop() {

}

Валится ошибка компиляции


Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Плата:"ATmega328 based, external 16 MHz, disable, enable, Old bootloader, enable, GyverUART, disable, enable, default v5.4.0"

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp: In member function 'virtual size_t IPAddress::printTo(Print&) const':

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp:108:15: error: invalid use of incomplete type 'class Print'

         n += p.print(_address.bytes[i], DEC);

               ^

In file included from C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino/IPAddress.h:24:0,

                 from C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp:21:

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino/Printable.h:25:7: note: forward declaration of 'class Print'

 class Print;

       ^

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp:109:15: error: invalid use of incomplete type 'class Print'

         n += p.print('.');

               ^

In file included from C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino/IPAddress.h:24:0,

                 from C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp:21:

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino/Printable.h:25:7: note: forward declaration of 'class Print'

 class Print;

       ^

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp:111:11: error: invalid use of incomplete type 'class Print'

     n += p.print(_address.bytes[3], DEC);

           ^

In file included from C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino/IPAddress.h:24:0,

                 from C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\IPAddress.cpp:21:

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino/Printable.h:25:7: note: forward declaration of 'class Print'

 class Print;

       ^

exit status 1
C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\main.cpp:2:17: note: #pragma message: Нас тут заперли, вызовите 911!

 #pragma message "Нас тут заперли, вызовите 911!"

                 ^

C:\Users\radmi\Documents\ArduinoData\packages\GyverCore\hardware\avr\1.10.2\cores\arduino\main.cpp:3:17: note: #pragma message: GyverCore v1.10.2 inside. Enjoy

 #pragma message "GyverCore v1.10.2 inside. Enjoy"

                 ^

Ошибка компиляции для платы ATmega328 based.
AlexGyver commented 4 years ago

Да есть такое, можно удалить файлы ipadress из ядра. Поправим в большом обновлении 2.0