求助Arduino示例正常上传。Blinker示例出现“为开发板ESP8266....-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1356|回复: 7

[已解答] 求助Arduino示例正常上传。Blinker示例出现“为开发板ESP8266....

[复制链接]
发表于 2020-3-11 00:06 | 显示全部楼层 |阅读模式
试了好久,删除重装多次,参考了坛子里多个求助帖无果,只能发帖求助大神!!!

WIN7 64位 ; IDE 1.8.11 ;ESP8266   2.5.0(2.5.2/2.6.3)都试过;blinker 库(目前能下载的版本);ESP8266-01S板子;选的Generic ESP8266 Module
Arduino 示例的Blink能正常上传闪烁。Arduino其他示例也能上传。
Blinker示例的任何一个程序都出现“为开发板ESP8266编译时出现错误”。因发帖字数限制,错误报文随机从中间删减后发帖。

#define BLINKER_PRINT Serial
#define BLINKER_WIFI

#include <Blinker.h>

char auth[] = "028e51939526";
char ssid[] = "FAST_771D62";
char pswd[] = "asdfghjkl";

// 新建组件对象
BlinkerButton Button1("btn");

// 按下按键即会执行该函数
void button1_callback(const String & state) {
    BLINKER_LOG("get button state: ", state);
    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
}

// 如果未绑定的组件被触发,则会执行其中内容
void dataRead(const String & data)
{
    BLINKER_LOG("Blinker readString: ", data);
}

void setup() {
    // 初始化串口
    Serial.begin(115200);

    #if defined(BLINKER_PRINT)
        BLINKER_DEBUG.stream(BLINKER_PRINT);
    #endif

    // 初始化有LED的IO
    pinMode(LED_BUILTIN, OUTPUT);
    digitalWrite(LED_BUILTIN, HIGH);
    // 初始化blinker
    Blinker.begin(auth, ssid, pswd);
    Blinker.attachData(dataRead);
    Button1.attach(button1_callback);
}

void loop() {
    Blinker.run();
}


Arduino:1.8.11 (Windows 7), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), ck, 26 MHz, 40MHz, DOUT (compatible), 512K (no SPIFFS), 2, nonos-sdk 2.2.1 (legacy), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

下载 https://downloads.arduino.cc/packages/package_index.json 时出错
c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::ntpConfig()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:7911: undefined reference to `_cdState'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._ZN10BlinkerApi15countdownConfigEv+0x10): undefined reference to `_cdRunState'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._ZN10BlinkerApi15countdownConfigEv+0x34): undefined reference to `_cdTime1'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._ZN10BlinkerApi15countdownConfigEv+0x44): undefined reference to `_cdStart'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._ZN10BlinkerApi15countdownConfigEv+0x88): undefined reference to `_cdTime2'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::countdownConfig()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:8348: undefined reference to `_lpState'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:117: undefined reference to `_lpTimes'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:157: undefined reference to `_lpRunState'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:157: undefined reference to `_lpTrigged_times'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:121: undefined reference to `_lpTime1'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::countdownConfig()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:8357: undefined reference to `_lpTime2'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `ArduinoJson6111_00000::BasicJsonDocument<ArduinoJson6111_00000:efaultAllocator>::BasicJsonDocument(unsigned int, ArduinoJson6111_00000:efaultAllocator)':

c:\users\administrator\documents\arduino\libraries\src\modules\arduinojson\arduinojson\document/basicjsondocument.hpp:34: undefined reference to `BLINKER_DEBUG'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: c:\users\administrator\documents\arduino\libraries\src\modules\arduinojson\arduinojson\document/basicjsondocument.hpp:34: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: c:\users\administrator\documents\arduino\libraries\src\modules\arduinojson\arduinojson\document/basicjsondocument.hpp:34: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, unsigned short>(__FlashStringHelper const*, unsigned short)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:103: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BLINKER_LOG_T<const __FlashStringHelper*, short unsigned int>':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:72: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:47: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG<IPAddress>(IPAddress)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:84: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\EEPROM/EEPROM.h:58: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, unsigned long>(__FlashStringHelper const*, unsigned long)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerAuto.h:903: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BLINKER_LOG_T<long unsigned int>':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:75: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, long>(__FlashStringHelper const*, long)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:105: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `_Z13BLINKER_LOG_TIPK19__FlashStringHelperIEEvT_DpT0_':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:72: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*>(__FlashStringHelper const*)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:78: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG<__FlashStringHelper const*>(__FlashStringHelper const*)':

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\EEPROM/EEPROM.h:58: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_ERR_LOG<__FlashStringHelper const*>(__FlashStringHelper const*)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:89: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._Z15BLINKER_ERR_LOGIIPK19__FlashStringHelperPcS2_EEvDpT_[void BLINKER_ERR_LOG<__FlashStringHelper const*, char*, __FlashStringHelper const*>(__FlashStringHelper const*, char*, __FlashStringHelper const*)]+0x22): undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `_Z13BLINKER_LOG_TIPK19__FlashStringHelperIhEEvT_DpT0_':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:98: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, unsigned char>(__FlashStringHelper const*, unsigned char)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:78: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._Z15BLINKER_LOG_ALLIIPK19__FlashStringHelperhS2_jS2_hEEvDpT_[void BLINKER_LOG_ALL<__FlashStringHelper const*, unsigned char, __FlashStringHelper const*, unsigned int, __FlashStringHelper const*, unsigned char>(__FlashStringHelper const*, unsigned char, __FlashStringHelper const*, unsigned int, __FlashStringHelper const*, unsigned char)]+0x2a): undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, char*, __FlashStringHelper const*, unsigned char>(__FlashStringHelper const*, char*, __FlashStringHelper const*, unsigned char)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:47: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, unsigned char, __FlashStringHelper const*, unsigned char>(__FlashStringHelper const*, unsigned char, __FlashStringHelper const*, unsigned char)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:103: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_T<char*>(char*)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:72: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, char*>(__FlashStringHelper const*, char*)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:103: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerOTA::loadVersion()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:550: undefined reference to `BLINKER_LOG_FreeHeap_ALL()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerProtocol::_print(char*, bool)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:561: undefined reference to `BLINKER_LOG_FreeHeap_ALL()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerProtocol::checkAutoFormat()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerProtocol.h:284: undefined reference to `BLINKER_LOG_FreeHeap_ALL()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerProtocol::printNow()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerProtocol.h:304: undefined reference to `BLINKER_LOG_FreeHeap_ALL()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<char*>(char*)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:101: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `_Z13BLINKER_LOG_TI6StringIEEvT_DpT0_':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:72: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `_Z13BLINKER_LOG_TIPK19__FlashStringHelperI6StringEEvT_DpT0_':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:78: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._ZN10BlinkerApi12timerSettingEv+0x2c): undefined reference to `taskCount'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BLINKER_LOG_T<String, const __FlashStringHelper*, String>':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:74: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `_Z13BLINKER_LOG_TIPK19__FlashStringHelperIjEEvT_DpT0_':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:72: undefined reference to `BLINKER_LOG_T()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `void BLINKER_LOG_ALL<__FlashStringHelper const*, unsigned int>(__FlashStringHelper const*, unsigned int)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:78: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o.text._ZN11BlinkerMQTT9autoPrintEm+0x44): undefined reference to `Adafruit_MQTT::publish(char const*, char const*, unsigned char)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerMQTT::autoPrint(unsigned long)':

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:117: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerMQTT::autoPrint(unsigned long)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/BlinkerMQTT.h:1329: undefined reference to `Adafruit_MQTT::publish(char const*, char const*, unsigned char)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/BlinkerMQTT.h:1349: undefined reference to `WebSocketsServer::remoteIP(unsigned char)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/BlinkerMQTT.h:1356: undefined reference to `WebSocketsServer::sendTXT(unsigned char, char const*, unsigned int)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/BlinkerMQTT.h:1340: undefined reference to `WebSocketsServer::remoteIP(unsigned char)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/BlinkerMQTT.h:1340: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `webSocketEvent_MQTT(unsigned char, WStype_t, unsigned char*, unsigned int)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/BlinkerMQTT.h:255: undefined reference to `WebSocketsServer::sendTXT(unsigned char, char const*, unsigned int)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BLINKER_LOG_T<const __FlashStringHelper*, unsigned char, const __FlashStringHelper*, IPAddress, const __FlashStringHelper*, char*>':

C:\Users\Administrator\Documents\Arduino\libraries\src/Adapters/../Blinker/BlinkerDebug.h:72: undefined reference to `BLINKER_LOG_TIME()'



c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerOTA::update()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:177: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:193: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:224: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:229: undefined reference to `BlinkerUpdaterClass::begin(unsigned int, int, int, unsigned char)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:229: undefined reference to `BlinkerUpdaterClass::writeStream(Stream&)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:231: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/../Functions/BlinkerOTA.h:237: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerOTA::update()':

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:272: undefined reference to `BlinkerUpdaterClass::end(bool)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/WString.h:272: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::checkOverlapping(unsigned char, unsigned short, unsigned char)':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:4255: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:4278: undefined reference to `_cdTrigged'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:4278: undefined reference to `_lpTrigged'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:4278: undefined reference to `_tmTrigged'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:8088: undefined reference to `triggedTask'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::checkTimer()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:9228: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:9286: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:9323: undefined reference to `BLINKER_LOG_TIME()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::run()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:3149: undefined reference to `STRING_contains_string(String const&, String const&)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:3163: undefined reference to `STRING_contains_string(String const&, String const&)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:3949: undefined reference to `WebSocketsServer::~WebSocketsServer()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:3963: undefined reference to `WebSocketsServer::~WebSocketsServer()'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o:C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:3973: undefined reference to `WebSocketsServer::WebSocketsServer(unsigned short, String, String)'

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\ESP01SBlinker.ino.cpp.o: in function `BlinkerApi::run()':

C:\Users\Administrator\Documents\Arduino\libraries\src/Blinker/BlinkerApi.h:3980: undefined reference to `WebSocketsServer::WebSocketsServer(unsigned short, String, String)'

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 Generic ESP8266 Module 编译时出错。
找到无效库在 C:\Users\Administrator\Documents\Arduino\libraries\examples: no headers files (.h) found in C:\Users\Administrator\Documents\Arduino\libraries\examples
找到无效库在 C:\Users\Administrator\Documents\Arduino\libraries\test: no headers files (.h) found in C:\Users\Administrator\Documents\Arduino\libraries\test
找到无效库在 C:\Users\Administrator\Documents\Arduino\libraries\examples: no headers files (.h) found in C:\Users\Administrator\Documents\Arduino\libraries\examples
找到无效库在 C:\Users\Administrator\Documents\Arduino\libraries\test: no headers files (.h) found in C:\Users\Administrator\Documents\Arduino\libraries\test

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。



发表于 2020-3-11 00:24 | 显示全部楼层
我看你这个路径有点奇怪?

你是怎么导入库的?
 楼主| 发表于 2020-3-11 00:30 | 显示全部楼层
Creeper666 发表于 2020-3-11 00:24
我看你这个路径有点奇怪?

你是怎么导入库的?

ESP8266 扩展包.EXE默认路径,appdata/Local/arduino15
Blinker库解压直接放入(包含示例和.h文件)     用户/我的文档/arduino/libraries文件夹内
发表于 2020-3-11 08:32 来自手机 | 显示全部楼层
当然不是直接解压啦。。。要使用IDE里面的导入.zip库,自己解压很容易失败的
 楼主| 发表于 2020-3-11 11:30 | 显示全部楼层
Creeper666 发表于 2020-3-11 08:32
当然不是直接解压啦。。。要使用IDE里面的导入.zip库,自己解压很容易失败的 ...

已经可以正常上传BLINKER程序。按照您说的,1.通过IDE的加载库.zip功能导入blinker库。2.ESP8266扩展包,删除2.5.2,添加2.6.3
 楼主| 发表于 2020-3-11 14:10 | 显示全部楼层
Creeper666 发表于 2020-3-11 08:32
当然不是直接解压啦。。。要使用IDE里面的导入.zip库,自己解压很容易失败的 ...

再请教一下,ESP-01s已经正常上线,Blinker软按键点动,指示灯显示常亮或常灭。继电器4.0,带光耦。ESP-01S发送高低电平,继电器均不动作,应该怎么去尝试解决?

其他描述:ESP-01S初始高电平,继电器上电5VDC,上电瞬间会有跳变。这个问题查过其他帖子,属继电器硬件问题。
发表于 2020-3-11 15:20 | 显示全部楼层
wolfman006 发表于 2020-3-11 14:10
再请教一下,ESP-01s已经正常上线,Blinker软按键点动,指示灯显示常亮或常灭。继电器4.0,带光耦。ESP-0 ...

把程序里面所有的LED_BUILTIN改为0
 楼主| 发表于 2020-3-11 16:13 | 显示全部楼层
Creeper666 发表于 2020-3-11 15:20
把程序里面所有的LED_BUILTIN改为0

大神厉害,寥寥几个字,完美解决所有问题。非常感谢!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 18:45 , Processed in 0.255107 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表