gpt4 book ai didi

arduino - WeMos D1 Mini esptool.FatalError : Timed out waiting for packet header

转载 作者:行者123 更新时间:2023-12-03 23:20:58 24 4
gpt4 key购买 nike

我有一个 WeMos D1 Mini 。以下是董事会信息:

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "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, 115200"

我正在尝试上传眨眼程序,但出现以下错误:
Executable segment sizes:


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


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


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


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


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


Sketch uses 257680 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27652 bytes (33%) of dynamic memory, leaving 54268 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM5
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 38:2b:78:04:7a:c0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Traceback (most recent call last):
File "C:\Users\adiba\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.1/tools/upload.py", line 69, in <module>
esptool.main(cmdline)
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 2933, in main
detect_flash_size(esp, args)
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 2241, in detect_flash_size
flash_id = esp.flash_id()
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 607, in flash_id
return self.run_spiflash_command(SPIFLASH_RDID, b"", 24)
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 853, in run_spiflash_command
old_spi_usr = self.read_reg(SPI_USR_REG)
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 490, in read_reg
val, data = self.command(self.ESP_READ_REG, struct.pack('<I', addr))
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 347, in command
p = self.read()
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 292, in read
return next(self._slip_reader)
File "C:/Users/adiba/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.1/tools/esptool\esptool.py", line 2045, in slip_reader
raise FatalError("Timed out waiting for packet %s" % waiting_for)
esptool.FatalError: Timed out waiting for packet header
esptool.FatalError: Timed out waiting for packet header

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

有什么解决办法吗?我的 friend 在他的电脑上试过这个板子,它似乎工作得很好。感谢您的支持。

最佳答案

我收到同样的错误,我的解决方案是:

  • 从 wemos D1 mini 中移除 USB
  • 焊锡线 D3 到 GND
  • 插头 USB
  • 上传你的 Sketch
  • 断开 D3 与 GND 的连接
  • 关于arduino - WeMos D1 Mini esptool.FatalError : Timed out waiting for packet header,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58945245/

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