Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arduino ESP32闪存上载启动,并因超时而失败_Arduino_Esp8266_Arduino Ide_Esp32_Esp8266wifi - Fatal编程技术网

Arduino ESP32闪存上载启动,并因超时而失败

Arduino ESP32闪存上载启动,并因超时而失败,arduino,esp8266,arduino-ide,esp32,esp8266wifi,Arduino,Esp8266,Arduino Ide,Esp32,Esp8266wifi,我有一个ESP32-WROOM 在ArduinoIDE中,我编译并验证我的草图,然后尝试上传 我得到以下错误: 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.

我有一个ESP32-WROOM

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

我得到以下错误:

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中使用以下设置进行上传:

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

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 正在连接……。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。上传草图时发生错误 _

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


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

您需要115200波特的设置

我相信您会遇到此错误,因为ESP32未处于闪存模式。您的计算机正在等待ESP32超时

Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch _

握住行李箱和EN,然后松开EN。如果您的设备上有两个按钮,请按住一个按钮并按下另一个按钮。如果不起作用,则尝试另一种按住/按下按钮组合:)

在成功上载代码之前,应断开Vin插脚,并在上载草图时按住启动按钮,直到连接。。线消失了

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

功劳应该归于
我在定制板上也遇到了同样的问题。根据数据表,要将ESP32置于下载模式,您需要有IO2(n24)和IO0(25)到0,在我的情况下,我有一些传感器连接到IO2。 同样来自数据表:“*引脚SCK/CLK、SDO/SD0、SDI/SD1、SHD/SD2、SWP/SD3和SCS/CMD,即GPIO6至GPIO11连接
连接到模块上集成的SPI闪存,不建议用于其他用途。”

尝试降低波特率我将其更改为115200,但我得到了相同的行为。检查连接,尝试使用不同的电缆和不同的USBport@RenegadeAndy你解决这个问题了吗?你检查过esp32保险丝了吗?我的esp32板也有同样的问题,我怀疑保险丝有问题。我不确定,当我观看串行监视器时,我收到下载启动消息,上面说正在等待下载。对我来说,这说明它处于正确的启动模式。我没有使用开发板,它只是esp32-wroom-32指令我不确定抱歉。我离开了ArduinoIDE,直接使用它作为一个组件。我不确定这是否会有帮助。这是现在使用esp32的战略方式吗?@Renegadendy对于任何非琐碎的项目,我建议通过ESP-IDF和Arduino ESP作为一个组件进行工作。我在ESP32论坛上读过类似的建议。在Arduino IDE上有一个轻微的学习曲线,但是你得到了很多控制权。Alex是正确的。如果您使用的是ESP32开发板之一,则需要FTDI电缆,除非您想自己手动操作EN和IO0线。