esphome / issues

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

esp32 nodemcu-32s "Guru Meditation Error: Core panic'ed (Interrupt wdt timeout on CPU0)" #2800

Open Levenale opened 2 years ago

Levenale commented 2 years ago

The problem

I'm a new user to esphome, doing a fresh install and trying to get a basic environment on a Nodemcu-32s board so I can continue building a sensor.

I setup the basic config (see below), built and downloaded with esphome dashboard, and it fails.

Specifics

  1. Using esphome dashboard, I'm connected to the nodemcu32s via a USB cable for downloading.
  2. I created a basic config with my wifi information in a secrets file
  3. I verified the config (success)
  4. I Installed the config
  5. Code built (with callouts below), device was flashed and booted, then failed with stack trace (below)
  6. I updated the planformio package and tried again; same results. During that install, it seemed to be identifying my wifi network, however the reload / reboot failed. I have pasted the first log since there appeared to be a baud-rate mismatch on the second log during the stack trace which garbled some of the output.

Specific callouts that I saw in the logs that may be concerning:

  1. The following two warnings:
/home/xxx/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c: In function 'spiTransferBytesNL':
/home/xxx/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_out8 = &result[c_longs-1];
                                       ^
/home/xxx/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_data8 = &last_data;
                                        ^
  1. Two warnings regarding dependency failures for Hash and ESP8266WiFi:
Library Manager: Installing Hash
Library Manager: Warning! Could not install dependency {'name': 'Hash', 'platforms': ['espressif8266']} for package 'ESPAsyncWebServer-esphome'
Library Manager: Installing ESP8266WiFi
Library Manager: Warning! Could not install dependency {'name': 'ESP8266WiFi', 'platforms': ['espressif8266']} for package 'ESPAsyncWebServer-esphome'

Which version of ESPHome has the issue?

2021.11.4

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

n/a

What platform are you using?

ESP32

Board

nodemcu esp32s v1.1

Component causing the issue

appears to be the wifi component as fault occurs immediately after.

Example YAML snippet

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

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "5a5187c7d735c4184e206dd0995ff2c7"

wifi:
  ssid: "xxxxx"
  password: !secret wifi_password

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

captive_portal:

Anything in the logs that might be useful for us?

O Reading configuration /home/roynh/ESPhome/config/powermon1.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Compiling app...
********************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
********************************************************************************

Processing powermon1 (board: nodemcu-32s; framework: arduino; platform: platformio/espressif32 @ 3.3.2)
--------------------------------------------------------------------------------
Platform Manager: Installing platformio/espressif32 @ 3.3.2
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%
Platform Manager: espressif32 @ 3.3.2 has been installed!
The platform 'platformio/espressif32 @ 3.3.2' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing platformio/toolchain-xtensa32 @ ~2.50200.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Tool Manager: toolchain-xtensa32 @ 2.50200.97 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.10006.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Tool Manager: framework-arduinoespressif32 @ 3.10006.210326 has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.30100.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%
Tool Manager: tool-esptoolpy @ 1.30100.210531 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40200.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%
Tool Manager: tool-scons @ 4.40200.0 has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2

Downloading  [------------------------------------]    0%
Downloading  [############------------------------]   33%
Downloading  [########################------------]   66%
Downloading  [####################################]  100%

Unpacking  [------------------------------------]    0%
Unpacking  [##----------------------------------]    6%
Unpacking  [####--------------------------------]   12%
Unpacking  [######------------------------------]   18%
Unpacking  [#########---------------------------]   25%
Unpacking  [###########-------------------------]   31%
Unpacking  [#############-----------------------]   37%
Unpacking  [###############---------------------]   43%
Unpacking  [##################------------------]   50%
Unpacking  [####################----------------]   56%
Unpacking  [######################--------------]   62%
Unpacking  [########################------------]   68%
Unpacking  [###########################---------]   75%
Unpacking  [#############################-------]   81%
Unpacking  [###############################-----]   87%
Unpacking  [#################################---]   93%
Unpacking  [####################################]  100%
Library Manager: AsyncTCP-esphome @ 1.2.2 has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0

Downloading  [------------------------------------]    0%
Downloading  [####--------------------------------]   12%
Downloading  [#########---------------------------]   25%
Downloading  [#############-----------------------]   37%
Downloading  [##################------------------]   50%
Downloading  [######################--------------]   62%
Downloading  [###########################---------]   75%
Downloading  [###############################-----]   87%
Downloading  [####################################]  100%

Unpacking  [------------------------------------]    0%
Unpacking  [#-----------------------------------]    2%
Unpacking  [##----------------------------------]    5%
Unpacking  [###---------------------------------]    8%
Unpacking  [####--------------------------------]   11%
Unpacking  [#####-------------------------------]   14%
Unpacking  [######------------------------------]   17%
Unpacking  [#######-----------------------------]   20%
Unpacking  [########----------------------------]   22%
Unpacking  [#########---------------------------]   25%
Unpacking  [##########--------------------------]   28%
Unpacking  [###########-------------------------]   31%
Unpacking  [############------------------------]   34%
Unpacking  [#############-----------------------]   37%
Unpacking  [##############----------------------]   40%
Unpacking  [###############---------------------]   42%
Unpacking  [################--------------------]   45%
Unpacking  [#################-------------------]   48%
Unpacking  [##################------------------]   51%
Unpacking  [###################-----------------]   54%
Unpacking  [####################----------------]   57%
Unpacking  [#####################---------------]   60%
Unpacking  [######################--------------]   62%
Unpacking  [#######################-------------]   65%
Unpacking  [########################------------]   68%
Unpacking  [#########################-----------]   71%
Unpacking  [##########################----------]   74%
Unpacking  [###########################---------]   77%
Unpacking  [############################--------]   80%
Unpacking  [#############################-------]   82%
Unpacking  [##############################------]   85%
Unpacking  [###############################-----]   88%
Unpacking  [################################----]   91%
Unpacking  [#################################---]   94%
Unpacking  [##################################--]   97%
Unpacking  [####################################]  100%
Library Manager: ESPAsyncWebServer-esphome @ 2.1.0 has been installed!
Library Manager: Installing dependencies...
Library Manager: Installing ottowinter/ESPAsyncTCP-esphome

Downloading  [------------------------------------]    0%
Downloading  [#######-----------------------------]   20%
Downloading  [##############----------------------]   40%
Downloading  [#####################---------------]   60%
Downloading  [############################--------]   80%
Downloading  [####################################]  100%

Unpacking  [------------------------------------]    0%
Unpacking  [#-----------------------------------]    3%
Unpacking  [##----------------------------------]    6%
Unpacking  [###---------------------------------]    9%
Unpacking  [####--------------------------------]   12%
Unpacking  [#####-------------------------------]   15%
Unpacking  [######------------------------------]   18%
Unpacking  [#######-----------------------------]   21%
Unpacking  [#########---------------------------]   25%
Unpacking  [##########--------------------------]   28%
Unpacking  [###########-------------------------]   31%
Unpacking  [############------------------------]   34%
Unpacking  [#############-----------------------]   37%
Unpacking  [##############----------------------]   40%
Unpacking  [###############---------------------]   43%
Unpacking  [################--------------------]   46%
Unpacking  [##################------------------]   50%
Unpacking  [###################-----------------]   53%
Unpacking  [####################----------------]   56%
Unpacking  [#####################---------------]   59%
Unpacking  [######################--------------]   62%
Unpacking  [#######################-------------]   65%
Unpacking  [########################------------]   68%
Unpacking  [#########################-----------]   71%
Unpacking  [###########################---------]   75%
Unpacking  [############################--------]   78%
Unpacking  [#############################-------]   81%
Unpacking  [##############################------]   84%
Unpacking  [###############################-----]   87%
Unpacking  [################################----]   90%
Unpacking  [#################################---]   93%
Unpacking  [##################################--]   96%
Unpacking  [####################################]  100%
Library Manager: ESPAsyncTCP-esphome @ 1.2.3 has been installed!
Library Manager: AsyncTCP-esphome @ 1.2.2 is already installed
Library Manager: Installing Hash
Library Manager: Warning! Could not install dependency {'name': 'Hash', 'platforms': ['espressif8266']} for package 'ESPAsyncWebServer-esphome'
Library Manager: Installing ESP8266WiFi
Library Manager: Warning! Could not install dependency {'name': 'ESP8266WiFi', 'platforms': ['espressif8266']} for package 'ESPAsyncWebServer-esphome'
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <WiFi> 1.0
|-- <FS> 1.0
|-- <Update> 1.0
|-- <ESPAsyncWebServer-esphome> 2.1.0
|   |-- <AsyncTCP-esphome> 1.2.2
|-- <DNSServer> 1.1.0
|-- <ESPmDNS> 1.0
Compiling .pioenvs/powermon1/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/util.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/esp32/gpio_arduino.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/esp32/gpio_idf.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/md5/md5.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/mdns/mdns_component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/mdns/mdns_esp_idf.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/network/util.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/ota/ota_component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/application.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/color.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/controller.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/entity_base.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/log.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/util.cpp.o
Compiling .pioenvs/powermon1/src/main.cpp.o
Generating partitions .pioenvs/powermon1/partitions.bin
Compiling .pioenvs/powermon1/lib69b/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/ETH.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFi.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiAP.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiClient.cpp.o
Archiving .pioenvs/powermon1/lib69b/libAsyncTCP-esphome.a
Indexing .pioenvs/powermon1/lib69b/libAsyncTCP-esphome.a
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiServer.cpp.o
Compiling .pioenvs/powermon1/libe2f/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/powermon1/lib6c6/FS/FS.cpp.o
Compiling .pioenvs/powermon1/lib6c6/FS/vfs_api.cpp.o
Compiling .pioenvs/powermon1/libc2b/Update/HttpsOTAUpdate.cpp.o
Archiving .pioenvs/powermon1/libe2f/libWiFi.a
Indexing .pioenvs/powermon1/libe2f/libWiFi.a
Compiling .pioenvs/powermon1/libc2b/Update/Updater.cpp.o
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Archiving .pioenvs/powermon1/lib6c6/libFS.a
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Indexing .pioenvs/powermon1/lib6c6/libFS.a
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Archiving .pioenvs/powermon1/libc2b/libUpdate.a
Indexing .pioenvs/powermon1/libc2b/libUpdate.a
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling .pioenvs/powermon1/libbf6/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling .pioenvs/powermon1/libc8b/DNSServer/DNSServer.cpp.o
Archiving .pioenvs/powermon1/libc8b/libDNSServer.a
Indexing .pioenvs/powermon1/libc8b/libDNSServer.a
Compiling .pioenvs/powermon1/lib51f/ESPmDNS/ESPmDNS.cpp.o
Archiving .pioenvs/powermon1/libFrameworkArduinoVariant.a
Indexing .pioenvs/powermon1/libFrameworkArduinoVariant.a
Compiling .pioenvs/powermon1/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/FunctionalInterrupt.cpp.o
Archiving .pioenvs/powermon1/libbf6/libESPAsyncWebServer-esphome.a
Indexing .pioenvs/powermon1/libbf6/libESPAsyncWebServer-esphome.a
Compiling .pioenvs/powermon1/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/IPAddress.cpp.o
Archiving .pioenvs/powermon1/lib51f/libESPmDNS.a
Indexing .pioenvs/powermon1/lib51f/libESPmDNS.a
Compiling .pioenvs/powermon1/FrameworkArduino/IPv6Address.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/MD5Builder.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/base64.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/cbuf.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-log.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-spi.c.o
/home/roynh/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c: In function 'spiTransferBytesNL':
/home/roynh/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_out8 = &result[c_longs-1];
                                       ^
/home/roynh/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_data8 = &last_data;
                                        ^
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-time.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/main.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/powermon1/libFrameworkArduino.a
Indexing .pioenvs/powermon1/libFrameworkArduino.a
Linking .pioenvs/powermon1/firmware.elf
RAM:   [=         ]  12.6% (used 41180 bytes from 327680 bytes)
Flash: [=====     ]  48.5% (used 889074 bytes from 1835008 bytes)
Building .pioenvs/powermon1/firmware.bin
======================== [SUCCESS] Took 317.29 seconds ========================

********************************************************************************
There is a new version 5.2.3 of PlatformIO available.
Please upgrade it via `platformio upgrade` or `pip install -U platformio` command.
Changes: https://docs.platformio.org/en/latest/history.html
********************************************************************************

********************************************************************************
There are the new updates for platforms (espressif32)
Please update them via `platformio platform update` command.

If you want to manually check for the new versions without updating, please use `platformio platform update --dry-run` command.
********************************************************************************

********************************************************************************
We found 98.15MB of unnecessary PlatformIO system data (temporary files, unnecessary packages, etc.).
Use `pio system prune --dry-run` to list them or `pio system prune` to save disk space.
INFO Successfully compiled program.
esptool.py v3.2
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: [redacted]
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x000e9fff...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Compressed 889184 bytes to 509581...
Wrote 889184 bytes (509581 compressed) at 0x00010000 in 12.8 seconds (effective 557.0 kbit/s)...
Hash of data verified.
Compressed 17104 bytes to 11191...
Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.5 seconds (effective 277.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 528.8 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 804.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[13:01:18]\xe9DIO, clock div:2
[13:01:18]load:0x3fff0018,len:4
[13:01:18]load:0x3fff001c,len:1044
[13:01:18]load:0x40078000,len:10124
[13:01:18]load:0x40080400,len:5828
[13:01:18]entry 0x400806a8
[13:01:19][I][logger:214]: Log initialized
[13:01:19][C][ota:452]: There have been 0 suspected unsuccessful boot attempts.
[13:01:19][D][esp32.preferences:114]: Saving preferences to flash...
[13:01:19][I][app:029]: Running through setup()...
[13:01:19][C][wifi:037]: Setting up WiFi...
[13:01:19][D][wifi:370]: Starting \xff
[13:01:20]Guru Meditation Error: Core  panic'ed (Interrupt wdt timeout on CPU0)
[13:01:20]Core 0 register dump:
[13:01:20]PC       0x40086f2  PS       0x00060834  A0       0x8014c06  A1       0x3fb160  
[13:01:20]A2       0x00000000  A3       0x00000001  A4       0x80089f4  A5       0x3fbc0  
[13:01:20]A6       0x00000000  A7       0x3fbe0  A8       0x8014a32  A9       0x3fb130  
[13:01:20]A10      0x00000000  A11      0x00060c3  A12      0x00000005  A13      0x00000020  
[13:01:20]A14      0x00000020  A15      0x00000000  SAR      0x00000000  EXCCAUSE 0x00000005  
[13:01:20]EXCVADDR 0x00000000  LBEG     0x00000000  LEND     0x00000000  LCOUNT   0x00000000  
[13:01:20]
[13:01:20]ELF file SHA256: 000000000000000
[13:01:20]
[13:01:20]Backtrace:0x40086f2:0x3fb1600x4014c03:0x3fb180 0x4008ba:0x3fb1a 0x40089c2:0x3fb1c
[13:01:20]
[13:01:20]ore 1 register dump:
[13:01:20]PC       0x4000c71  PS       0x00060034  A0       0x8008af  A1       0x3fbc0  
[13:01:20]A2       0x3fb058  A3       0x3f17780  A4       0x00000014  A5       0x3fbe0  
[13:01:20]A6       0x3fbe8  A7       0x00000001  A8       0x00000001  A9       0x3f17781  
[13:01:20]A10      0x000000a  A11      0x3fb060  A12      0x8008bb  A13      0x3fbe0  
[13:01:20]A14      0x00000008  A15      0x00000001  SAR      0x00000012  EXCCAUSE 0x00000005  
[13:01:20]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[13:01:20]
[13:01:20]ELF file SHA256: 000000000000000
[13:01:20]
[13:01:20]Backtrace:0x4000c71:0x3fbc00x4008af:0x3fbc00x4008ca:0x3fbc00x4008c5a0x4008456a
[13:01:20]
[13:01:20]Rebooting...

Additional information

This does not appear to be the same as issues #1276 or #2302 since they are different boards.

Levenale commented 2 years ago

Summary: I looked at release notes for similar changes, and then walked backward on releases until I was successfully able to load and execute the basic yaml on 1.18.0.

Details:

Did some looking around in the release notes and noticed:

which went into the 2021.10.4 release.

I reverted esphome==2021.9.3

Tagged a clean build and attempted a build / install.

Got the following error:

"Library Manager: Installing Hash
Warning! Could not find the package with 'Hash' requirements for your system 'linux_x86_64'

Result was to still have the panic, but did not get the ESP8266WiFi error.

Hard resetting via RTS pin...
========================= [SUCCESS] Took 58.08 seconds =========================
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[19:02:43][I][logger:174]: Log initialized
[19:02:43][C][ota:379]: There have been 0 suspected unsuccessful boot attempts.
[19:02:43][I][app:029]: Running through setup()...
[19:02:43][C][wifi:037]: Setting up WiFi...
[19:02:43][D][wifi:382]: Starting scan...
[19:02:44]Guru Meditation Error: Core  panic'ed (Interrupt wdt timeout on CPU1)
[19:02:44]Core 1 register dump:
[19:02:44]PC       0x4000c71  PS       0x00060034  A0       0x8008ac  A1       0x3fbb0  
[19:02:44]A2       0x3fb058  A3       0x3f17fc A4       0x00000014  A5       0x3fbe0  
[19:02:44]A6       0x3fbe8  A7       0x00000001  A8       0x00000001  A9       0x3f17fd 
[19:02:44]A10      0x000000a  A11      0x00000000  A12      0x8008b77  A13      0x3fbe0  
[19:02:44]A14      0x00000008  A15      0x00000001  SAR      0x0000001e EXCCAUSE 0x00000006  
[19:02:44]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[19:02:44]
[19:02:44]ELF file SHA256: 000000000000000
[19:02:44]
[19:02:44]Backtrace:0x4000c71:0x3fbb00x4008ab:0x3fbb00x4008c68:0x3fbb00x4008c1e0x000004a
[19:02:44]
[19:02:44]ore 0 register dump:
[19:02:44]PC       0x40086f6  PS       0x00060d4  A0       0x80089c9  A1       0x3fbf0  
[19:02:44]A2       0x3fbc8  A3       0x3fb208  A4       0x00000000  A5       0x0000001a 
[19:02:44]A6       0x40083f8  A7       0x3fc45c A8       0x3f0cc  A9       0x3fbf0  
[19:02:44]A10      0x00000017  A11      0x00000000  A12      0x3fbf4  A13      0x00000040  
[19:02:44]A14      0x00000000  A15      0x3fb204  SAR      0x0000001e EXCCAUSE 0x00000006  
[19:02:44]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[19:02:44]
[19:02:44]ELF file SHA256: 000000000000000
[19:02:44]
[19:02:44]Backtrace:0x40086f6:0x3fbf00x40089c6:0x3fbf0
[19:02:44]
[19:02:44]Rebooting...

Next, reverted esphome==2021.8.2

received same package error and panic.

Next reverted esphome==1.20.4

same library error for Hash, same panic.

Next reverted to esphome==1.19.4

same library error for hash, same panic, but better output:

Library Manager: Installing Hash
Library Manager: Warning! Could not install dependency {'name': 'Hash', 'platforms': ['espressif8266']} for package 'ESPAsyncWebServer-esphome'
Library Manager: Installing Hash
Warning! Could not find the package with 'Hash' requirements for your system 'linux_x86_64'

And crash output:

Hard resetting via RTS pin...
========================= [SUCCESS] Took 50.44 seconds =========================
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[19:27:14][I][logger:170]: Log initialized
[19:27:14][C][ota:366]: There have been 4 suspected unsuccessful boot attempts.
[19:27:14][I][app:029]: Running through setup()...
[19:27:14][C][wifi:037]: Setting up WiFi...
[19:27:14][D][wifi:365]: S\xccf\x86\xf8~\x86\x9e\xf8\x9e~\x81scan...
[19:27:15]\xe0|\xf0\xf8\xf0\xf0\xf0\xe0 Meditation Error: Core  1 panic'ed (IllegalInstruction). Exception was unhandled.
[19:27:15]Memory dump at 0x4008aa9c: 08e0d73d 00f01d00 56004136
[19:27:15]Core 1 register dump:
[19:27:15]PC      : 0x4008aaa1  PS      : 0x00060c33  A0      : 0x4008c437  A1      : 0x3ffb1d60  
INFO Need to fetch platformio IDE-data, please stand by
INFO Running:  platformio run -d /home/xxxx/ESPhome/config/powermon1 -t idedata
WARNING Decoded 0x4008aaa1: vTaskSwitchContext at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
[19:27:16]A2      : 0x00050c23  A3      : 0x3ffb8058  A4      : 0x3ffc7878  A5      : 0x00000000  
[19:27:16]A6      : 0x3ffb8778  A7      : 0x00000449  A8      : 0x8008aaa1  A9      : 0x3ffb1d50  
[19:27:16]A10     : 0x00000003  A11     : 0x00060c23  A12     : 0x00060c23  A13     : 0x3ffb8058  
[19:27:16]A14     : 0x00000000  A15     : 0x00000000  SAR     : 0x0000001b  EXCCAUSE: 0x00000000  
[19:27:16]EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff  
[19:27:16]
[19:27:16]ELF file SHA256: 0000000000000000
[19:27:16]
[19:27:16]Backtrace: 0x4008aaa1:0x3ffb1d60 0x4008c434:0x3ffb1d80 0x4008c4c5:0x3ffb1da0 0x400da6a1:0x3ffb1dc0 0x400dbac2:0x3ffb1e10 0x400e6522:0x3ffb1fb0 0x40089c82:0x3ffb1fd0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x4008aaa1: vTaskSwitchContext at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008c434: _frxt_dispatch at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portasm.S:406
WARNING Decoded 0x4008c4c5: vPortYield at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portasm.S:555
WARNING Decoded 0x400da6a1: esphome::Application::setup() at /home/xxxx/ESPhome/config/powermon1/src/esphome/core/application.cpp:55
WARNING Decoded 0x400dbac2: setup() at /home/xxxx/ESPhome/config/powermon1/src/main.cpp:106
WARNING Decoded 0x400e6522: loopTask(void*) at /home/xxxx/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:18
WARNING Decoded 0x40089c82: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[19:27:16]
[19:27:16]Rebooting...
[19:27:16]ets Jun  8 2016 00:22:57
[19:27:16]
[19:27:16]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:27:16]configsip: 0, SPIWP:0xee
[19:27:16]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[19:27:16]mode:DIO, clock div:2
[19:27:16]load:0x3fff0018,len:4
[19:27:16]load:0x3fff001c,len:1044
[19:27:16]load:0x40078000,len:10124
[19:27:16]load:0x40080400,len:5828
[19:27:16]entry 0x400806a8
[19:27:16][I][logger:170]: Log initialized
[19:27:16][C][ota:366]: There have been 5 suspected unsuccessful boot attempts.
[19:27:16][I][app:029]: Running through setup()...
[19:27:16][C][wifi:037]: Setting up WiFi...
[19:27:16][D][wifi:365]: Starting scan...
[19:27:18][D][wifi:380]: Found networks:
[19:27:18][I][wifi:426]: - 'xxx' [redacted]▂▄▆█
[19:27:18][D][wifi:427]:     Channel: 1
[19:27:18]x8d\xe0\xe0\xfc 28]:     RSSI: -66 dB
[19:27:18][I][wifi:235]: WiFi Connecting to 'xxxx'...
[19:27:19]Guru Meditation Error: Core  panic'ed (Interrupt wdt timeout on CPU0)
[19:27:19]Core 0 register dump:
[19:27:19]PC       0x400833b  PS       0x00060b4  A0       0x80083d4  A1       0x3fbf0  
[19:27:19]A2       0x000908f  A3       0x00060b3  A4       0x00060b0  A5       0x00000001  
[19:27:19]A6       0x00060f0  A7       0x00000000  A8       0x40145cc A9       0x00060b3  
[19:27:19]A10      0x00000001  A11      0x3fb0b  A12      0x00000001  A13      0x00000001  
[19:27:19]A14      0x00060b0  A15      0x00000000  SAR      0x0000001d EXCCAUSE 0x00000005  
[19:27:19]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[19:27:19]
[19:27:19]ELF file SHA256: 000000000000000
[19:27:19]
[19:27:19]Backtrace:0x400833b:0x3fbf00x40083d1:0x3fbf0 0x4011253a0x3fbf0 0x40116d7:0x3fbf0 0x40089c2:0x3fb020
[19:27:19]
[19:27:19]ore 1 register dump:
[19:27:19]PC       0x4000c71  PS       0x00060034  A0       0x8008a8c A1       0x3fbc0  
[19:27:19]A2       0x3fb058  A3       0x3f18b4  A4       0x00000014  A5       0x3fbe0  
[19:27:19]A6       0x3fbe8  A7       0x00000001  A8       0x00000001  A9       0x3f18b5  
[19:27:19]A10      0x000000a  A11      0x00000000  A12      0x8008b43  A13      0x3fbe0  
[19:27:19]A14      0x00000008  A15      0x00000001  SAR      0x0000001e EXCCAUSE 0x00000005  
[19:27:19]EXCVADDR 0x00000000  LBEG     0x4000ce  LEND     0x4000cf  LCOUNT   0xffff  
[19:27:19]
[19:27:19]ELF file SHA256: 000000000000000
[19:27:19]
[19:27:19]Backtrace:0x4000c71:0x3fbc00x4008a89:0x3fbc00x4008c34:0x3fbc00x4008ce:0x00000020
[19:27:19]
[19:27:19]Rebooting...

Next reverted to esphome==1.18.0. Got the same 'Hash' library error, however this time I was able to successfully load and run.

This is the full log file of that load:

INFO Reading configuration /home/xxxx/ESPhome/config/powermon1.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Compiling app...
INFO Running:  platformio run -d /home/xxxx/ESPhome/config/powermon1
********************************************************************************
Obsolete PIO Core v5.1.1 is used (previous was 5.2.3)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page/faq.html#multiple-platformio-cores-in-a-system
********************************************************************************
Processing powermon1 (board: nodemcu-32s; framework: arduino; platform: platformio/espressif32@3.0.0)
--------------------------------------------------------------------------------
Platform Manager: Installing platformio/espressif32 @ 3.0.0
Downloading  [####################################]  100%          
Platform Manager: espressif32 @ 3.0.0 has been installed!
The platform 'platformio/espressif32@3.0.0' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.10004.191002
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%
Tool Manager: framework-arduinoespressif32 @ 3.10004.210126 has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif32 3.10004.210126 (1.0.4) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - toolchain-xtensa32 2.50200.97 (5.2.0)
Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2
Library Manager: AsyncTCP-esphome @ 1.2.2 has been installed!
Library Manager: Installing ESPAsyncWebServer-esphome @ 1.2.7
Library Manager: Warning! More than one package has been found by ESPAsyncWebServer-esphome @ 1.2.7 requirements:
 - esphome/ESPAsyncWebServer-esphome @ 2.1.0
 - ottowinter/ESPAsyncWebServer-esphome @ 2.1.0
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Library Manager: ESPAsyncWebServer-esphome @ 1.2.7 has been installed!
Library Manager: Installing dependencies...
Library Manager: Installing ESPAsyncTCP-esphome
Library Manager: ESPAsyncTCP-esphome @ 1.2.3 has been installed!
Library Manager: Installing Hash
Library Manager: Warning! Could not install dependency {'name': 'Hash', 'platforms': ['espressif8266']} for package 'ESPAsyncWebServer-esphome'
Library Manager: Installing Hash
Warning! Could not find the package with 'Hash' requirements for your system 'linux_x86_64'
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <FS> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
|   |-- <AsyncTCP-esphome> 1.2.2
|   |-- <FS> 1.0
|   |-- <WiFi> 1.0
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <DNSServer> 1.1.0
|   |-- <WiFi> 1.0
|-- <Update> 1.0
|-- <WiFi> 1.0
Compiling .pioenvs/powermon1/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/api/util.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/ota/ota_component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component_esp32.cpp.o
Compiling .pioenvs/powermon1/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/application.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/component.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/controller.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/esphal.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/log.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/preferences.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/powermon1/src/esphome/core/util.cpp.o
Compiling .pioenvs/powermon1/src/main.cpp.o
Generating partitions .pioenvs/powermon1/partitions.bin
Compiling .pioenvs/powermon1/libbcf/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling .pioenvs/powermon1/lib243/FS/FS.cpp.o
Compiling .pioenvs/powermon1/lib243/FS/vfs_api.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/ETH.cpp.o
Archiving .pioenvs/powermon1/libbcf/libAsyncTCP-esphome.a
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFi.cpp.o
Indexing .pioenvs/powermon1/libbcf/libAsyncTCP-esphome.a
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiAP.cpp.o
Archiving .pioenvs/powermon1/lib243/libFS.a
Indexing .pioenvs/powermon1/lib243/libFS.a
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiClient.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiServer.cpp.o
Compiling .pioenvs/powermon1/libf6f/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/SPIFFSEditor.cpp.o
Archiving .pioenvs/powermon1/libf6f/libWiFi.a
Indexing .pioenvs/powermon1/libf6f/libWiFi.a
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling .pioenvs/powermon1/libd48/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling .pioenvs/powermon1/lib0c7/ESPmDNS/ESPmDNS.cpp.o
Compiling .pioenvs/powermon1/libbf7/DNSServer/DNSServer.cpp.o
Archiving .pioenvs/powermon1/lib0c7/libESPmDNS.a
Indexing .pioenvs/powermon1/lib0c7/libESPmDNS.a
Compiling .pioenvs/powermon1/libe0b/Update/Updater.cpp.o
Archiving .pioenvs/powermon1/libFrameworkArduinoVariant.a
Indexing .pioenvs/powermon1/libFrameworkArduinoVariant.a
Archiving .pioenvs/powermon1/libd48/libESPAsyncWebServer-esphome.a
Indexing .pioenvs/powermon1/libd48/libESPAsyncWebServer-esphome.a
Compiling .pioenvs/powermon1/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/FunctionalInterrupt.cpp.o
Archiving .pioenvs/powermon1/libbf7/libDNSServer.a
Indexing .pioenvs/powermon1/libbf7/libDNSServer.a
Compiling .pioenvs/powermon1/FrameworkArduino/HardwareSerial.cpp.o
Archiving .pioenvs/powermon1/libe0b/libUpdate.a
Compiling .pioenvs/powermon1/FrameworkArduino/IPAddress.cpp.o
Indexing .pioenvs/powermon1/libe0b/libUpdate.a
Compiling .pioenvs/powermon1/FrameworkArduino/IPv6Address.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/MD5Builder.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/base64.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/cbuf.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-time.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/main.cpp.o
Compiling .pioenvs/powermon1/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/powermon1/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/powermon1/libFrameworkArduino.a
Indexing .pioenvs/powermon1/libFrameworkArduino.a
Linking .pioenvs/powermon1/firmware.elf
Building .pioenvs/powermon1/firmware.bin
Retrieving maximum program size .pioenvs/powermon1/firmware.elf
Checking size .pioenvs/powermon1/firmware.elf
RAM:   [=         ]  12.9% (used 42304 bytes from 327680 bytes)
Flash: [=====     ]  47.5% (used 872394 bytes from 1835008 bytes)
======================== [SUCCESS] Took 102.12 seconds ========================
INFO Successfully compiled program.
INFO Running:  platformio run -d /home/xxxx/ESPhome/config/powermon1 -t upload --upload-port /dev/ttyUSB0
********************************************************************************
Obsolete PIO Core v5.1.1 is used (previous was 5.2.3)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page/faq.html#multiple-platformio-cores-in-a-system
********************************************************************************
Processing powermon1 (board: nodemcu-32s; framework: arduino; platform: platformio/espressif32@3.0.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif32 3.10004.210126 (1.0.4) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - tool-mkspiffs 2.230.0 (2.30) 
 - toolchain-xtensa32 2.50200.97 (5.2.0)
Library Manager: Installing Hash
Warning! Could not find the package with 'Hash' requirements for your system 'linux_x86_64'
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <FS> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
|   |-- <AsyncTCP-esphome> 1.2.2
|   |-- <FS> 1.0
|   |-- <WiFi> 1.0
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <DNSServer> 1.1.0
|   |-- <WiFi> 1.0
|-- <Update> 1.0
|-- <WiFi> 1.0
Retrieving maximum program size .pioenvs/powermon1/firmware.elf
Checking size .pioenvs/powermon1/firmware.elf
RAM:   [=         ]  12.9% (used 42304 bytes from 327680 bytes)
Flash: [=====     ]  47.5% (used 872394 bytes from 1835008 bytes)
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Use manually specified: /dev/ttyUSB0
Uploading .pioenvs/powermon1/firmware.bin
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 94:b9:7e:e9:4f:b8
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 15872 bytes to 10319...
Writing at 0x00001000... (100 %)
Wrote 15872 bytes (10319 compressed) at 0x00001000 in 0.9 seconds (effective 139.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1467.7 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 7967.2 kbit/s)...
Hash of data verified.
Compressed 872512 bytes to 487065...
Writing at 0x00010000... (3 %)
Writing at 0x00014000... (6 %)
Writing at 0x00018000... (10 %)
Writing at 0x0001c000... (13 %)
Writing at 0x00020000... (16 %)
Writing at 0x00024000... (20 %)
Writing at 0x00028000... (23 %)
Writing at 0x0002c000... (26 %)
Writing at 0x00030000... (30 %)
Writing at 0x00034000... (33 %)
Writing at 0x00038000... (36 %)
Writing at 0x0003c000... (40 %)
Writing at 0x00040000... (43 %)
Writing at 0x00044000... (46 %)
Writing at 0x00048000... (50 %)
Writing at 0x0004c000... (53 %)
Writing at 0x00050000... (56 %)
Writing at 0x00054000... (60 %)
Writing at 0x00058000... (63 %)
Writing at 0x0005c000... (66 %)
Writing at 0x00060000... (70 %)
Writing at 0x00064000... (73 %)
Writing at 0x00068000... (76 %)
Writing at 0x0006c000... (80 %)
Writing at 0x00070000... (83 %)
Writing at 0x00074000... (86 %)
Writing at 0x00078000... (90 %)
Writing at 0x0007c000... (93 %)
Writing at 0x00080000... (96 %)
Writing at 0x00084000... (100 %)
Wrote 872512 bytes (487065 compressed) at 0x00010000 in 42.9 seconds (effective 162.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
========================= [SUCCESS] Took 48.49 seconds =========================
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[19:45:46][I][logger:170]: Log initialized
[19:45:46][C][ota:366]: There have been 6 suspected unsuccessful boot attempts.
[19:45:46][I][app:029]: Running through setup()...
[19:45:46][C][wifi:033]: Setting up WiFi...
[19:45:48][D][wifi:324]: Starting scan...x98\x9ef\x80\x98\x80[D][wifi:339]: Found networks:
[19:45:48][I][wifi:385]: - 'xxx' [redacted]▂▄▆█
[19:45:48][D][wifi:386]:     Channel: 1
[19:45:48]xf3\x98xx\x98\x9e\xe6\x9e`\xe6f\xaeW˥\xe9387]:     RSSI: -68 dB
[19:45:48][I][wifi:194]: WiFi Connecting to 'xxx'...
[19:45:50][W][wifi_esp32:409]: Event: Disconnected ssid='xxx' bssid=

[redacted] reason='Auth Expired'
[19:45:50][W][wifi:485]: Error while connecting to network.
[19:45:50][W][wifi:522]: Restarting WiFi adapter...
[19:45:50][I][wifi:194]: WiFi Connecting to 'xxx'...
jamiebegin commented 2 years ago

I'm experiencing the same issue with the same hardware. Thank you for sharing your research.