esphome / issues

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

Boot loop on NSPanel #3141

Closed Ulrar closed 2 years ago

Ulrar commented 2 years ago

The problem

The Sonoff NSPanel uses a ESP32D0WDQ5 (revision 3) and gets stuck in a boot loop, even with the default config. I initially reported the issue there but someone else noted the same behavior since an update of ESPHome.

I've tried all three arduino versions : latest and recommended boot loop, and dev doesn't compile.

Which version of ESPHome has the issue?

v2022.2.6

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

Sonoff NSPanel (esp32dev)

Component causing the issue

Don't know

Example YAML snippet

esphome:
  name: nspanel-lr

esp32:
  board: esp32dev

ota:
  password: "blah"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

logger:

api:

Anything in the logs that might be useful for us?

[17:16:27]ets Jul 29 2019 12:21:46
[17:16:27]
[17:16:27]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[17:16:27]configsip: 0, SPIWP:0xee
[17:16:27]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[17:16:27]mode:DIO, clock div:2
[17:16:27]load:0x3fff0018,len:4
[17:16:27]load:0x3fff001c,len:1044
[17:16:27]load:0x40078000,len:8896
[17:16:27]load:0x40080400,len:5828
[17:16:27]entry 0x400806ac
[17:16:28][I][logger:214]: Log initialized
[17:16:28][C][ota:461]: There have been 10 suspected unsuccessful boot attempts.
[17:16:28][D][esp32.preferences:114]: Saving preferences to flash...
[17:16:28][E][ota:468]: Boot loop detected. Proceeding to safe mode.
[17:16:28][I][app:029]: Running through setup()...
[17:16:28][C][wifi:037]: Setting up WiFi...

The above repeats endlessly. I did get it to connect to wifi with a different config that I don't have anymore, but even then the api port was staying closed so it wasn't really working. The screen was flickering on and off, so I suspect the chip was also rebooting then. Sadly I can't capture logs when the whole board is powered up so it's hard to know if it's the same issue as the above boot loop or not, but since that other person on the original issue is seeing the same behavior on a panel that was working until updated, I imagine it is.

Additional information

I did try using https://web.esphome.io/ to flash the 'prepare for adoption' firmware, but it also boot loops with almost the same output, the only difference being that it reboots at the 'Setting up BLE' step instead of wifi.

Ulrar commented 2 years ago

Nevermind, figured it out. The NSPanel only boots correctly if supplied clean 5v through it's 8 pin header, and my serial adapter's 5v mode is actually quite a bit under that. Using a proper power supply it boots up fine, sorry about the noise