Делюсь опытом esp32 arduino ide установка

Moseich

New member
Мне не удалось подключить новую плату c модулем ESP- WROOM-32. Подозреваю драйвер USB для МАС Подскажите, как победить.
ESP-WROOM-32.png
 

Andrey L

New member
Arduino IDE при прошивке выдаёт ошибку: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header"

У меня ESP 32 DEVKIT V1.

Драйвер с сайта silabs установлен, модуль подключается к COM-порту.
В Arduino IDE добавил поддержку "ESP32".
- В меню "файл" прописал магическую строчку https://dl.espressif.com/dl/package_esp32_index.json
- Через меню "инструменты" загрузил поддержку модулей "esp32 be Espressif Systems Version 1.0.1"
Среди новых плат выбрал "ESP32 Dev Module"

Так же изменил настройки на DIO, 40MHz, 115200... (ниже будет скриншот).

Для теста решил написать код, чтобы модуль мигал LED:
Код:
void setup() {
  pinMode(2, OUTPUT);
}
void loop() {
  digitalWrite(2, HIGH);
  delay(2000);
  digitalWrite(2, LOW);
  delay(2000);
}

Но при попытке прошить модуль Arduino IDE выдаёт ошибку: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header"
Arduino: 1.8.8 (Windows 7), Board: "ESP32 Dev Module, Enabled, Default, 40MHz (40MHz XTAL), DIO, 40MHz, 4MB (32Mb), 115200, Error"

Build-Optionen wurden verändert, alles wird neu kompiliert
Der Sketch verwendet 241344 Bytes (18%) des Programmspeicherplatzes. Das Maximum sind 1310720 Bytes.
Globale Variablen verwenden 12996 Bytes (3%) des dynamischen Speichers, 314684 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.
esptool.py v2.6-beta1
Serial port COM11
Connecting........_____....._____....._____....._____....._____....._____.....____Beim Hochladen des Sketches ist ein Fehler aufgetreten
_

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.


При нажатии на кнопку "EN" модуль выдаёт следующее сообщение:
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:3480
load:0x40078000,len:7804
ho 0 tail 12 room 4
load:0x40080000,len:252
entry 0x40080034
[0;32mI (45) boot: ESP-IDF v2.0-3-gbef9896 2nd stage bootloader[0m
[0;32mI (46) boot: compile time 05:59:45[0m
[0;32mI (77) boot: Enabling RNG early entropy source...[0m
[0;32mI (77) boot: SPI Speed : 40MHz[0m
[0;32mI (78) boot: SPI Mode : DIO[0m
[0;32mI (90) boot: SPI Flash Size : 4MB[0m
[0;32mI (102) boot: Partition Table:[0m
[0;32mI (113) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (136) boot: 0 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (159) boot: 1 otadata OTA data 01 00 00010000 00002000[0m
[0;32mI (183) boot: 2 nvs WiFi data 01 02 00012000 0000e000[0m
[0;32mI (206) boot: 3 at_customize unknown 40 00 00020000 000e0000[0m
[0;32mI (229) boot: 4 ota_0 OTA app 00 10 00100000 00180000[0m
[0;32mI (252) boot: 5 ota_1 OTA app 00 11 00280000 00180000[0m
[0;32mI (276) boot: End of partition table[0m
[0;32mI (289) boot: Disabling RNG early entropy source...[0m
[0;32mI (306) boot: Loading app partition at offset 00100000[0m
[0;32mI (1481) boot: segment 0: paddr=0x00100018 vaddr=0x00000000 size=0x0ffe8 ( 65512) [0m
[0;32mI (1482) boot: segment 1: paddr=0x00110008 vaddr=0x3f400010 size=0x1c5f0 (116208) map[0m
[0;32mI (1498) boot: segment 2: paddr=0x0012c600 vaddr=0x3ffb0000 size=0x0215c ( 8540) load[0m
[0;32mI (1528) boot: segment 3: paddr=0x0012e764 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (1552) boot: segment 4: paddr=0x0012eb6c vaddr=0x40080400 size=0x1b028 (110632) load[0m
[0;32mI (1631) boot: segment 5: paddr=0x00149b9c vaddr=0x400c0000 size=0x00034 ( 52) load[0m
[0;32mI (1632) boot: segment 6: paddr=0x00149bd8 vaddr=0x00000000 size=0x06430 ( 25648) [0m
[0;32mI (1648) boot: segment 7: paddr=0x00150010 vaddr=0x400d0018 size=0x7a56c (501100) map[0m
[0;32mI (1675) heap_alloc_caps: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (1698) heap_alloc_caps: At 3FFBA6B8 len 00025948 (150 KiB): DRAM[0m
[0;32mI (1719) heap_alloc_caps: At 3FFE8000 len 00018000 (96 KiB): D/IRAM[0m
[0;32mI (1740) heap_alloc_caps: At 4009B428 len 00004BD8 (18 KiB): IRAM[0m
[0;32mI (1761) cpu_start: Pro cpu up.[0m
[0;32mI (1773) cpu_start: Single core mode[0m
[0;32mI (1786) cpu_start: Pro cpu start user code[0m
[0;32mI (1847) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (1945) uart: queue free spaces: 10[0m
Bin version:0.10.0

I (1946) wifi: wifi firmware version: c604573
I (1946) wifi: config NVS flash: enabled
I (1947) wifi: config nano formating: disabled
I (1966) wifi: Init dynamic tx buffer num: 32
I (1966) wifi: wifi driver task: 3ffc4f34, prio:23, stack:3584
I (1967) wifi: Init static rx buffer num: 10
I (1969) wifi: Init dynamic rx buffer num: 0
I (1973) wifi: Init rx ampdu len mblock:7
I (1976) wifi: Init lldesc rx ampdu entry mblock:4
I (1981) wifi: wifi power manager task: 0x3ffca2dc prio: 21 stack: 2560
I (1987) wifi: wifi timer task: 3ffcb35c, prio:22, stack:3584
[0;31mE (1993) phy_init: PHY data partition validated[0m
[0;32mI (2013) phy: phy_version: 329, Feb 22 2017, 15:58:07, 0, 0[0m
I (2014) wifi: mode : softAP (24:0a:c4:30:d1:95)
I (2017) wifi: mode : sta (24:0a:c4:30:d1:94) + softAP (24:0a:c4:30:d1:95)
I (2021) wifi: mode : softAP (24:0a:c4:30:d1:95)
 

Вложения

Andrey L

New member
Как избавиться от ошибки: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header".

Во время прошивки надо держать кнопку "Boot" нажатой.
 
Сверху Снизу