当我尝试将代码上传到ESP32时,我遇到了一个问题。确切型号为esp - room - 32d,ESP32_DEVKit_V4
输出为:
Sketch uses 1671989 bytes (85%) of program storage space. Maximum is 1966080 bytes.
Global variables use 57136 bytes (17%) of dynamic memory, leaving 270544 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM6
Connecting.........
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:13:36:30
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x001a9fff...
Compressed 18880 bytes to 13017...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Failed uploading: uploading error: exit status 2
在串行端口中也有这个:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xff�ets Jul 29 2019 12:21:46
这是一次又一次的循环我不明白为什么会这样,为什么我不能上传我的素描谢谢你的帮助!!
快速搜索您收到的警告WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs
,您的问题的答案可能是:
链接:https://github.com/espressif/esptool/issues/705
这是一个明确的指示,问题是有缺陷的开发工具包-特别是闪存芯片。根据你的日志,通讯在闪存芯片读取/写入之前,ESP工作良好操作芯片发生
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing
任何其他连接到IOs的硬件。
此警告与硬件故障直接相关。试着运行python-m esptool flash_id,该命令要求ESP查询flash芯片并报告其制造商和设备号。如果这如果失败,则只报告0000s或ffff。