我试图使用nodemcu,LED和blynk应用程序构建简单的IoT产品。这是使用nodemcu可以执行的最基本的操作。但是,当我从Blynk库上载示例时,出现了此错误。
这似乎是端口错误,但我仍然无法理解任何错误。
错误消息如下:
Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Sketch uses 279792 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28848 bytes (35%) of dynamic memory, leaving 53072 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM3
Connecting...
Traceback (most recent call last):
File "C:\Users\saumi\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/upload.py", line 25, in <module>
esptool.main(fakeargs)
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 2653, in main
esp.connect(args.before)
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 460, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 440, in _connect_attempt
self.sync()
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 379, in sync
timeout=SYNC_TIMEOUT)
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 322, in command
self.write(pkt)
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 285, in write
self._port.write(buf)
File "C:/Users/saumi/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/pyserial\serial\serialwin32.py", line 323, in write
raise writeTimeoutError
serial.serialutil.SerialTimeoutException: Write timeout
The selected serial port serial.serialutil.SerialTimeoutException: Write timeout does not exist or your board is not connected
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
答案 0 :(得分:1)
将您的上传速度从115200更改为9600! 我做到了,效果很好
答案 1 :(得分:1)
更改USB电缆对我有用!!