gpt4 book ai didi

arduino-ide - 如何使用 NodeMCU 和 arduino ide 修复 "SerialTimeoutException: Write timeout"错误

转载 作者:行者123 更新时间:2023-12-04 01:43:44 29 4
gpt4 key购买 nike

我试图使用 nodemcu、LED 和 blynk 应用程序构建一个简单的物联网产品。这是你可以用 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.

最佳答案

将您的上传速度从 115200 更改为 9600!
我这样做了,而且效果很好

关于arduino-ide - 如何使用 NodeMCU 和 arduino ide 修复 "SerialTimeoutException: Write timeout"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56197395/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com