上传程序出错,求助-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1812|回复: 1

上传程序出错,求助

[复制链接]
发表于 2020-7-5 13:54 | 显示全部楼层 |阅读模式
使用的板子是wemosD1 mini
esp8266版本2.7.1

arduino IDE版本1.8.12

开发板及端口选择均无问题,设备驱动正常,很长时间了,一直下载不进去程序,希望大佬可以帮我看下问题出在哪里。

错误信息如下:
Arduino:1.8.12 (Windows 10), 开发板:"LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/BlinkerESPMQTT.h:10:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker.h:36,

                 from G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:6:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Adapters/BlinkerMQTT.h:855:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:82:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/BlinkerESPMQTT.h:11,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker.h:36,

                 from G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:6:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApiBase.h:194:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

                 else return "false";

                             ^

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:83:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/BlinkerESPMQTT.h:11,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker.h:36,

                 from G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:6:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerProtocol.h:98:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

             char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }

                                                                                      ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerProtocol.h:99:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

             char * authKey()    { if (isInit) return conn->authKey(); else return "";  }

                                                                                   ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerProtocol.h:235:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         char* dataParse()       { if (canParse) return conn->lastRead(); else return ""; }

                                                                                      ^

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/BlinkerESPMQTT.h:11:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker.h:36,

                 from G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:6:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: At global scope:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:787:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);

                                                                                                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:6984:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "";

                     ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:6991:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "false";

                     ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:7616:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_joy(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:7623:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "";

                     ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:7630:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:7636:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src/Blinker/BlinkerApi.h:7642:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino: At global scope:

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:15:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:16:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:17:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:18:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:19:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:20:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:21:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:22:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:23:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:24:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:25:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

G:\小度智能家居设计\百度小度\智能灯设计\程序设计\DuerOS_LIGHT_zhu_cheng_xu_V2.0\DuerOS_LIGHT_zhu_cheng_xu_V2.0.ino:26:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\WebSockets\WebSocketsClient.cpp:174:87: warning: 'bool BearSSL::WiFiClientSecure::setCACert(const uint8_t*, size_t)' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:142): This is deprecated AxTLS API, check https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L25-L99 [-Wdeprecated-declarations]

                 _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);

                                                                                       ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\WebSockets\WebSocketsClient.cpp:761:68: warning: 'bool BearSSL::WiFiClientSecure::verify(const char*, const char*)' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:182): This is deprecated AxTLS API, check https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L25-L99 [-Wdeprecated-declarations]

         if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {

                                                                    ^

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/mesh.hpp:11:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessMeshConnection.h:19,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/wifi.hpp:7,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessMeshSTA.cpp:13:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In function 'void painlessmesh::plugin:ta::addPackageCallback(Scheduler&, painlessmesh::plugin:ackageHandler<T>&, TSTRING)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:280:3: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   SPIFFS.begin();  // Start the SPI Flash Files System

   ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:282:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   if (SPIFFS.exists(currentFW->ota_fn)) {

       ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:283:17: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

     auto file = SPIFFS.open(currentFW->ota_fn, "r");

                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In lambda function:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:371:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

           auto file = SPIFFS.open(updateFW->ota_fn, "w");

                       ^

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/mesh.hpp:11:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessMeshConnection.h:19,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/wifi.hpp:7,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\wifi.cpp:2:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In function 'void painlessmesh::plugin:ta::addPackageCallback(Scheduler&, painlessmesh::plugin:ackageHandler<T>&, TSTRING)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:280:3: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   SPIFFS.begin();  // Start the SPI Flash Files System

   ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:282:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   if (SPIFFS.exists(currentFW->ota_fn)) {

       ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:283:17: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

     auto file = SPIFFS.open(currentFW->ota_fn, "r");

                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In lambda function:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:371:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

           auto file = SPIFFS.open(updateFW->ota_fn, "w");

                       ^

In file included from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/mesh.hpp:11:0,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessMeshConnection.h:19,

                 from C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessMeshConnection.cpp:9:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/ota.hpp: In function 'void painlessmesh::plugin:ta::addPackageCallback(Scheduler&, painlessmesh::plugin:ackageHandler<T>&, TSTRING)':

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/ota.hpp:280:3: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   SPIFFS.begin();  // Start the SPI Flash Files System

   ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/ota.hpp:282:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   if (SPIFFS.exists(currentFW->ota_fn)) {

       ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/ota.hpp:283:17: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

     auto file = SPIFFS.open(currentFW->ota_fn, "r");

                 ^

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/ota.hpp: In lambda function:

C:\Users\12525\Documents\Arduino\libraries\blinker-library-dev_3.0\src\modules\painlessMesh\painlessmesh/ota.hpp:371:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

           auto file = SPIFFS.open(updateFW->ota_fn, "w");

                       ^

Executable segment sizes:


IROM   : 514408          - code in flash         (default or ICACHE_FLASH_ATTR)


IRAM   : 28176   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)


DATA   : 1468  )         - initialized variables (global, static) in RAM/HEAP


RODATA : 6068  ) / 81920 - constants             (global, static) in RAM/HEAP


BSS    : 30520 )         - zeroed variables      (global, static) in RAM/HEAP


项目使用了 550120 字节,占用了 (52%) 程序存储空间。最大为 1044464 字节。
全局变量使用了38056字节,(46%)的动态内存,余留43864字节局部变量。最大为81920字节。
esptool.py v2.8
Serial port COM4
Connecting........_____....._____....._____....._____....._____....._____....._____
Traceback (most recent call last):
  File "C:\Users\12525\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "C:/Users/12525/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 2890, in main
    esp.connect(args.before)
  File "C:/Users/12525/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

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



发表于 2020-7-5 23:36 | 显示全部楼层
目测是 IO 口上接东西,影响到 BOOT 时序了。

建议把所有模块、杜邦线都拔掉,留一个裸板上传程序试试看。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 08:33 , Processed in 0.075322 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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