esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

esp-idf framework does not work, device enters boot loop #4850

Closed anton-malakhov closed 1 year ago

anton-malakhov commented 1 year ago

The problem

Created new empty device and changed framework type to esp-idf. It compiles and flashes successfully but does not work, staying in boot loop.

Which version of ESPHome has the issue?

2023.8.2

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32-IDF

Board

esp32-s3 devkitc-1 (YD-ESP32-S3 2022-V1.3)

Component causing the issue

esp-idf

Example YAML snippet

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
    #version: recommended

Anything in the logs that might be useful for us?

QIO, clock div:1
load:0Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3fce3808,len:0x162c
ets_loader.c 78 
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Save
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x400454d5
SPIWP:0xee
mode:QIO, clock div:1
load:0x3fce3808,len:0x162c
ets_loader.c 78 
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x10 (RTCWDT_RTC_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3fce3808,len:0x162c
ets_loader.c 78 
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021

Additional information

In arduino mode the log is the following (redacted):

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x43c
load:0x403c9700,len:0xbec
load:0x403cc700,len:0x2a3c
entry 0x403c98d8
[I][logger:262]: Log initialized
[C][ota:469]: There have been 1 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[C][wifi:038]: Setting up WiFi...
[C][wifi:048]: Starting WiFi...
HeMan commented 1 year ago

I've had similar problems when I got board wrong. Does it work with the arduino framework?

anton-malakhov commented 1 year ago

I've had similar problems when I got board wrong. Does it work with the arduino framework?

Yes, it works well, updated description. The board was detected automatically and looks correct

anton-malakhov commented 1 year ago

This fixed the issue!

esphome:
  #...
  platformio_options:
    board_build.flash_mode: dio