将我的草图上传到 esp32 时出错

问题描述 投票:0回答:2

当我尝试将代码上传到 ESP32 时遇到问题。 具体型号是 ESP-WROOM-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

这个循环一遍又一遍 我不明白为什么会这样以及为什么我无法上传我的草图 感谢您的帮助!!!

arduino upload serial-port esp32
2个回答
0
投票

快速搜索您收到的警告

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

连接到 IO 的任何其他硬件。

此警告与有故障的硬件直接相关。尝试运行 python -m esptool flash_id,此命令要求 ESP 询问闪存芯片并报告其制造商和设备号。如果这 失败,仅报告 0000s 或 ffffs。


0
投票

我也遇到了这个问题,在带有 ESP32 devkit v1 的 Arduino IDE 中。突然间,我无缘无故地看到,当我尝试用即使是微不足道的代码(例如眨眼)刷新电路板时,我也会收到错误。擦除闪光灯显然修复了它。

© www.soinside.com 2019 - 2024. All rights reserved.