esp8266上传失败-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4573|回复: 4

[未解决] esp8266上传失败

[复制链接]
发表于 2020-4-22 20:41 | 显示全部楼层 |阅读模式
大佬们,新手用ide 上传esp8266 blinker的时候失败了求教一下





Arduino:1.8.10 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:10:0,
                 from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
                 from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:683:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     else return "";
                 ^
In file included from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:82:0,
                 from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
                 from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
                 from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\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\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:83:0,
                 from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
                 from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
                 from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:97:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
             char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }
                                                                                      ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:98:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
             char * authKey()    { if (isInit) return conn->authKey(); else return "";  }
                                                                                   ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:234: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\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11:0,
                 from C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
                 from C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:48:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: At global scope:
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:777:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
         BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);
                                                                                                 ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6380:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
         else return "";
                     ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6387:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
         else return "false";
                     ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7012:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     else return "";
                 ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7026:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     else return "";
                 ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7032:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     else return "";
                 ^
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':
C:\Users\THUNDEROBOT\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7038:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     else return "";
                 ^
C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino: At global scope:
C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:55:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerButton Button1("btn-abc");
                                ^
C:\Users\THUNDE~1\AppData\Local\Temp\arduino_modified_sketch_261681\Hello_WiFi.ino:56:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerNumber Number1("num-abc");
                                ^
Executable segment sizes:

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

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

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

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

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

项目使用了 529972 字节,占用了 (50%) 程序存储空间。最大为 1044464 字节。
全局变量使用了36832字节,(44%)的动态内存,余留45088字节局部变量。最大为81920字节。
esptool.py v2.8
Serial port COM3
Traceback (most recent call last):
  File "C:\Users\THUNDEROBOT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2889, in main
    esp = chip_class(each_port, initial_baud, args.trace)
  File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 237, in __init__
    self._port = serial.serial_for_url(port)
  File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/pyserial\serial\__init__.py", line 88, in serial_for_url
    instance.open()
  File "C:/Users/THUNDEROBOT/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/pyserial\serial\serialwin32.py", line 62, in open
    raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': FileNotFoundError(2, 'ϵͳ�Ҳ���ָ�����ļ���', None, 2)
serial.serialutil.SerialException: could not open port 'COM3': FileNotFoundError(2, 'ϵͳ�Ҳ���ָ�����ļ���', None, 2)
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。


发表于 2020-4-23 09:10 | 显示全部楼层
感觉这是编译失败 不是上传失败 还没有到上传的地步
 楼主| 发表于 2020-4-23 16:21 | 显示全部楼层
单片机菜鸟 发表于 2020-4-23 09:10
感觉这是编译失败 不是上传失败 还没有到上传的地步

那大佬知道什么问题吗,我用的示例blinker hello wifi 输入了秘钥和wifi密码编译上传就这样了
发表于 2020-5-3 20:19 | 显示全部楼层
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
发表于 2021-7-8 12:00 | 显示全部楼层
今天偶然发现:当我在D5(GPIO14)与GND之间加一个电阻和发光二极管(用于作指示灯)后,即使编译没有问题,上传也会失败,把主板取下后再上传成功。说明外围设备对主板上传会产生影响,提供大家参考。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-29 03:58 , Processed in 0.070108 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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