Unable to Connect to WIFI

Hello!

I am struggling to install ESPHOME onto a NodeMCU esp32.

Originally I believed the error to be coming from my wifi password, as it contained special characters which may have caused issues with the string parsing, so I changed that, but am still getting stuck in the same place. It compiles and then the following error happens after it tries to connect to wifi:

Serial output error:

[14:10:52]Guru Meditation Error: Core  panic'ed (Interrupt wdt timeout on CPU1)
[14:10:52]Core 1 register dump:
[14:10:52]PC       0x4000c71  PS       0x00060034  A0       0x8008af  A1       0x3fbc0  
[14:10:52]A2       0x3fb058  A3       0x3f17778  A4       0x00000014  A5       0x3fbe0  
[14:10:52]A6       0x3fbe8  A7       0x00000001  A8       0x00000001  A9       0x3f17779  
[14:10:52]A10      0x000000a  A11      0x3fb060  A12      0x8008bb  A13      0x3fbe0  
[14:10:52]A14      0x00000008  A15      0x00000001  SAR      0x00000012  EXCCAUSE 0x00000006  
[14:10:52]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[14:10:52]
[14:10:52]ELF file SHA256: 000000000000000
[14:10:52]
[14:10:52]Backtrace:0x4000c71:0x3fbc00x4008af:0x3fbc00x4008ca:0x3fbc00x4008c5a0x4008455e
[14:10:52]
[14:10:52]ore 0 register dump:
[14:10:52]PC       0x40086f2  PS       0x00060634  A0       0x80116fe A1       0x3fb080  
[14:10:52]A2       0x00000001  A3       0x00000004  A4       0x3fce8  A5       0x00000040  
[14:10:52]A6       0x00000000  A7       0x3fb204  A8       0x80083fb A9       0x3fb070  
[14:10:52]A10      0x00000000  A11      0x3fb174  A12      0x00000001  A13      0x00000001  
[14:10:52]A14      0x00060620  A15      0x00000000  SAR      0x0000001e EXCCAUSE 0x00000006  
[14:10:52]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[14:10:52]
[14:10:52]ELF file SHA256: 000000000000000
[14:10:52]
[14:10:52]Backtrace:0x40086f2:0x3fb0800x40116fb0x3fb0b 0x40089c2:0x3fb0e
[14:10:52]
[14:10:52]Rebooting...

Here is my configuration:

esphome:
  name: esp32
  platform: ESP32
  board: nodemcu-32s

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "55f5a9ce7b2f6e4ca8101f75d5b0764f"

wifi:
  ssid: "my-ssid"
  password: "my-password"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32 Fallback Hotspot"
    password: "XRNBsJcM6wzA"

captive_portal:

NodeMCU ESP-32S V1.1
NodeMCU ESP-32S V1 1

Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz

ESPHome v2021.11.4
Home Assistant 2021.11.5
pi400

I’m new to ESP32 and home-assistant, and debugging these errors. I’m unfarmiliar with how to parse these logs, I am interested in learning how/using a tool to do it.

Can anyone help provide me with a direction on what I should try next next? A link to a debugger script/tool would be useful too.

Thank you

Edit:
Things I’ve tried without success:

  • Swapped boards (I have a spare of the same board)

  • Erasing flash memory via esptool.py github download and running erase_flash on dev/ttyUSB0. I’m not sure that it has worked as I get this:

[16:38:35][C][ota:452]: There have been 5 suspected unsuccessful boot attempts.

Is there another way to clean out the board, as now I suspect this is the issue?

What version of esphome are you running?

Version: ESPHome v2021.11.4

If you have a link to your device, please post it.
There are so many variations of “NodeMCU” like devices those days…

NodeMCU ESP-32S v1.1

pictured here (A)

Try with the generic ESP32 config and see what result you get:

esphome:
  name: test

esp32:
  board: esp32dev
  framework:
    type: arduino

or this:

esphome:
  name: esp32
  platform: ESP32
  board: esp32doit-devkit-v1

Which works for all my cheap ESP32 clones.

The issue is may be the S in esp-32S.

ESP-IDF framework¶

This is an alternative base framework for ESP32 chips, and recommended for variants of the ESP32 like ESP32S2, ESP32S3, ESP32C3 and single-core ESP32 chips.

1 Like

Thank you @zoogara - I updated ESP Home to v2021.12.3, and used the configuration you recommended, then performed a hard reset by holding down the Boot button (GPIO0) and the EN button (EN (CHIP_PU)) at the same time, power cycled, and we’re online!