繁体   English   中英

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

[英]Got an error uploading my sketch to esp32

当我尝试将我的代码上传到我的 ESP32 时遇到问题。 确切的 model 是ESP-WROOM-32D , ESP32_DEVKit_V4

Output 是:

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 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

这清楚地表明问题出在有故障的开发套件上——特别是它们的 flash 芯片。 根据您的日志,在发生 flash 芯片读/写操作芯片之前,与 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 或 ffffs。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM