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