ARDUINO Проблема с компиляцией скетча

Александр Симонов

Проходящий мимо
02.08.2018
185
36
38
#82
При проверки проекта сигнализации с модулем ИК Arduino IDE ВЫДАЕТ ОШИБКУ компиляции:

Arduino: 1.8.9 (Windows 10), Плата:"Arduino/Genuino Uno"

Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':

(.text+0x0): multiple definition of `__vector_7'

libraries\IRremote\IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here

Явно проблема с библиотеками.Не могу разобраться.Что делать?Подскажите...
Похоже, обе библиотеки пытаются повесить свой обработчик прерывания на один и тот же таймер. Вроде библиотеку IRremote можно перенастроить на другой таймер, погугли.
 
05.09.2019
2
0
1
#83
Похоже, обе библиотеки пытаются повесить свой обработчик прерывания на один и тот же таймер. Вроде библиотеку IRremote можно перенастроить на другой таймер, погугли.
Проблема,как оказалась такая:ИК и Буззер используют один таймер, и вместе не работают.Как только убрал пищалку, то пошла "массовка" все загрузилось. Это в программе FLProg.
 
18.12.2018
2
0
1
#86
Не хочет компилировать код, выдаёт эту ошибку:
Arduino: 1.6.7 (Windows 10), Плата:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (1M SPIFFS), v2 Higher Bandwidth, Disabled, None, Sketch + WiFi Settings, 115200"

WARNING: Spurious .github folder in 'WiFiManager' library
Изменены опции сборки, пересобираем все
In file included from C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/lwip2/include/lwip/opt.h:51:0,

from C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/lwip2/include/lwip/init.h:40,

from C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/IPAddress.h:27,

from C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:31,

from C:\Users\компухтер\Desktop\GyverLamp_v1.3\GyverLamp_v1.3.ino:73:

C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/lwip2/include/lwipopts.h:1301:2: error: #error TCP_MSS must be defined

#error TCP_MSS must be defined

^

C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/lwip2/include/lwipopts.h:2381:2: error: #error LWIP_IPV6 must be defined

#error LWIP_IPV6 must be defined

^

C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/lwip2/include/lwipopts.h:3534:2: error: #error LWIP_FEATURES must be defined

#error LWIP_FEATURES must be defined

^

In file included from C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:29:0,

from C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,

from C:\Users\компухтер\Desktop\GyverLamp_v1.3\GyverLamp_v1.3.ino:73:

C:\Users\компухтер\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/include/user_interface.h:34:2: error: #error LWIP_OPEN_SRC must be defined

#error LWIP_OPEN_SRC must be defined

^

C:\Users\компухтер\Desktop\GyverLamp_v1.3\GyverLamp_v1.3.ino:74:23: fatal error: DNSServer.h: No such file or directory

compilation terminated.

exit status 1
Ошибка компиляции.

Это сообщение будет содержать больше информации чем
"Отображать вывод во время компиляции"
включено в Файл > Настройки

Все библиотеки установлены верно
STDxGr70t3k.jpg eJxrgWyj0pQ.jpg
 
#88
Помоги добрые люди, выдает ошибку:

Arduino: 1.6.5 (Windows 8.1), Плата"Arduino Nano, ATmega168"

In file included from colorMusic_v2.10.ino:206:0:
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRLremote.h:29:2: error: #error IRLremote requires Arduino IDE 1.6.6 or greater. Please update your IDE.
#error IRLremote requires Arduino IDE 1.6.6 or greater. Please update your IDE.
^
In file included from colorMusic_v2.10.ino:200:0:
C:\Users\USER\Documents\Arduino\libraries\FastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008
# pragma message "FastLED version 3.001.008"
^
In file included from C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Nec.h:28:0,
from C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRLremote.h:44,
from colorMusic_v2.10.ino:206:
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h: In member function 'uint32_t CIRL_Time<T>::nextEvent()':
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h:135:10: error: 'time' does not name a type
auto time = timeout();
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h:136:10: error: 'timespan' does not name a type
auto timespan = static_cast<T*>(this)->timespanEvent;
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h:138:8: error: 'time' was not declared in this scope
if(time >= timespan) {
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h:138:16: error: 'timespan' was not declared in this scope
if(time >= timespan) {
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h:142:12: error: 'timespan' was not declared in this scope
return timespan - time;
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Time.h:142:23: error: 'time' was not declared in this scope
return timespan - time;
^
In file included from C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Nec.h:30:0,
from C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRLremote.h:44,
from colorMusic_v2.10.ino:206:
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Decode.h: In static member function 'static void CIRL_DecodeSpaces<T, blocks>::interrupt()':
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Decode.h:100:10: error: 'duration' does not name a type
auto duration = T::nextTime();
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Decode.h:103:9: error: 'duration' was not declared in this scope
if (duration >= T::limitTimeout) {
^
In file included from C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRLremote.h:45:0,
from colorMusic_v2.10.ino:206:
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h: In member function 'void CNecAPI<callback, address>::read()':
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:72:8: error: 'data' does not name a type
auto data = CNec::read();
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:75:28: error: request for member 'address' in 'CIRL_DecodeSpaces<CNec, 4>::data', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'
bool firstCommand = data.address != 0xFFFF;
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:76:13: error: request for member 'address' in 'CIRL_DecodeSpaces<CNec, 4>::data', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'
if ((data.address == 0) || (address && firstCommand && (data.address != address)))
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:76:64: error: request for member 'address' in 'CIRL_DecodeSpaces<CNec, 4>::data', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'
if ((data.address == 0) || (address && firstCommand && (data.address != address)))
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:96:14: error: request for member 'command' in 'CIRL_DecodeSpaces<CNec, 4>::data', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'
if (data.command == lastCommand)
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:124:24: error: request for member 'command' in 'CIRL_DecodeSpaces<CNec, 4>::data', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'
lastCommand = data.command;
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h: In member function 'uint32_t CNecAPI<callback, address>::nextTimeout()':
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:205:10: error: 'time' does not name a type
auto time = timeout();
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:206:10: error: 'timeout' does not name a type
auto timeout = getTimeout();
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:208:8: error: 'time' was not declared in this scope
if(time >= timeout) {
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_NecAPI.h:212:22: error: 'time' was not declared in this scope
return timeout - time;
^
In file included from C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRLremote.h:47:0,
from colorMusic_v2.10.ino:206:
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h: In static member function 'static void CHashIR::interrupt()':
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:180:10: error: 'duration' does not name a type
auto duration = nextTime();
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:183:8: error: 'duration' was not declared in this scope
if(duration >= HASHIR_TIMEOUT)
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:213:18: error: 'oldval' does not name a type
auto oldval = lastDuration;
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:214:18: error: 'newval' does not name a type
auto newval = duration;
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:220:17: error: 'newval' was not declared in this scope
if (newval < (oldval * 3 / 4)) {
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:220:27: error: 'oldval' was not declared in this scope
if (newval < (oldval * 3 / 4)) {
^
C:\Users\USER\Documents\Arduino\libraries\IRLremote-master\src/IRL_Hash.h:240:28: error: 'duration' was not declared in this scope
lastDuration = duration;
^
colorMusic_v2.10.ino: In function 'void remoteTick()':
colorMusic_v2.10:688: error: 'data' does not name a type
colorMusic_v2.10:689: error: 'data' was not declared in this scope
Multiple libraries were found for "FHT.h"

Used: C:\Users\USER\Documents\Arduino\libraries\FHT

Not used: C:\Program Files (x86)\Arduino\libraries\FHT

Multiple libraries were found for "EEPROMex.h"

Used: C:\Users\USER\Documents\Arduino\libraries\EEPROMex

Not used: C:\Program Files (x86)\Arduino\libraries\EEPROMex

Multiple libraries were found for "FastLED.h"

Used: C:\Users\USER\Documents\Arduino\libraries\FastLED-master

Not used: C:\Program Files (x86)\Arduino\libraries\FastLED-master

Multiple libraries were found for "GyverButton.h"

Used: C:\Users\USER\Documents\Arduino\libraries\GyverButton

Not used: C:\Program Files (x86)\Arduino\libraries\GyverButton

Multiple libraries were found for "IRLremote.h"

Used: C:\Users\USER\Documents\Arduino\libraries\IRLremote-master

Not used: C:\Program Files (x86)\Arduino\libraries\IRLremote-master

'data' does not name a type