ESP32闪烁上载开始并因超时而失败 [英] ESP32 Flashing upload starts and fails with timeout

查看:4323
本文介绍了ESP32闪烁上载开始并因超时而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ESP32-WROOM,在这里看到.

I have an ESP32-WROOM, as seen here.

在Arduino IDE中,我编译并验证我的草图,然后尝试上传.

In the Arduino IDE, I compile and verify my sketch, and then attempt an upload.

我收到以下错误:

esptool.py v2.1
Connecting........___
Chip is ESP32D0WDQ6 (revision (unknown 0xa))
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Compressed 8192 bytes to 47...

A fatal error occurred: Timed out waiting for packet content
A fatal error occurred: Timed out waiting for packet content

Invalid library found in /Users/me/Documents/Arduino/hardware/espressif/esp32/libraries/BLE: no headers files (.h) found in /Users/me/Documents/Arduino/hardware/espressif/esp32/libraries/BLE
Invalid library found in /Users/me/Documents/Arduino/hardware/espressif/esp32/libraries/BLE: no headers files (.h) found in /Users/me/Documents/Arduino/hardware/espressif/esp32/libraries/BLE

我在IDE中使用以下设置进行上传:

I am using these settings in the IDE for the upload:

我将波特率更改为115200,然后还观看了串行监视器,看到了以下消息:

I changed the baud rate to 115200, and then also watched the serial monitor, where i saw the following messages appear:

ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0371 
⸮ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ts Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 37⸮ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ts Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ts Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 37ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ts Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
(SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
⸮ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ts Jun  8 2016 00:22:57

其后是:

esptool.py v2.1 正在连接....._____....._____....._____....._____....._____....._____....._____.... ._____....._____.....____上传草图时发生错误 _

esptool.py v2.1 Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch _

发生致命错误:无法连接到ESP32:等待Arduino IDE上的数据包头超时.

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header on the Arduino IDE.

请帮助我了解如何使此草图直接上传到ESP芯片.

Please help me to understand what I need to do to make this sketch upload work direct to the ESP chip.

推荐答案

您可以通过在EN和GND之间连接一个10uF电解电容器,使ESP32自动进入闪光模式. 确保您观察电容器的极性. 您可以将电容器焊接到ESP32板上,如下图所示. 如何在ESP32上添加自动进入闪光模式的电容器

You can make the ESP32 automatically go into flash mode by connecting a 10uF electrolytic capacitor between EN and GND. Make sure you observer the capacitor's polarity. You can solder the capacitor onto the ESP32 board, as shown in the attached image. How to add an auto-enter-flash-mode capacitor on an ESP32

信用额应转到 使ESP32自动输入闪光模式

这篇关于ESP32闪烁上载开始并因超时而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆