esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
294 stars 37 forks source link

i2c bus boot problem on nodemcu-32s #3216

Open xuxiaohe0308 opened 2 years ago

xuxiaohe0308 commented 2 years ago

The problem

Hi I am using ESP32 (nodemcu-32s) and TSL2561 through i2c, and trying to use MQTT to publish sensor data. When I flash my ESP32 it seems to be stuck in some kind of dead loop (which is shown in the log below). Some important messages are like Performing I2C bus recovery [21:31:02]E (10192) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: I think it is i2c's problem because when I delete i2c and TSL2561 configuration in the yaml file it can boot correctly. Also I try another BME280 sensor and the problem still exists. Can you solve my problem?

Which version of ESPHome has the issue?

2022.3.2

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

nodemcu-32s

Component causing the issue

i2c

Example YAML snippet

esphome:
  name: esp32-1

esp32:
  board: nodemcu-32s

#Enable logging
logger:

#Enable Home Assistant API
# api:

#ota:
#  password: "****************************"

wifi:
  ssid: ****
  password: ********

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

#captive_portal:

i2c:
    sda: GPIO21
    scl: GPIO22
    scan: true
    id: bus_a

sensor:
#  - platform: bme280
#    temperature:
#      name: "BME280 Temperature"
#      oversampling: 16x
#    pressure:
#      name: "BME280 Pressure"
#    humidity:
#      name: "BME280 Humidity"
#    update_interval: 10s
#    i2c_id: bus_a
#    address: 0x76

  - platform: tsl2561
    name: "TSL2561 Ambient Light"
    update_interval: 5s
    i2c_id: bus_a
    address: 0x39

mqtt:
  broker: 192.168.0.159
  port: 1883
  username: esp32-1
  password: esp32-1
  discovery: true

Anything in the logs that might be useful for us?

INFO Reading configuration esphome_config/esp32-1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing esp32-1 (board: nodemcu-32s; framework: arduino; platform: platformio/espressif32 @ 3.5.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <WiFi> 1.0
|-- <ESPmDNS> 1.0
|-- <AsyncMqttClient-esphome> 0.8.6
|   |-- <AsyncTCP-esphome> 1.2.2
|-- <Wire> 1.0.1
|-- <ArduinoJson> 6.18.5
RAM:   [=         ]  12.6% (used 41400 bytes from 327680 bytes)
Flash: [=====     ]  45.7% (used 838702 bytes from 1835008 bytes)
========================= [SUCCESS] Took 8.44 seconds =========================
INFO Successfully compiled program.
esptool.py v3.2
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b8:d6:1a:82:12:54
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 0x000dcfff...
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 838816 bytes to 482243...
Wrote 838816 bytes (482243 compressed) at 0x00010000 in 12.0 seconds (effective 559.6 kbit/s)...
Hash of data verified.
Compressed 17104 bytes to 11191...
Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.6 seconds (effective 236.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.1 seconds (effective 427.9 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 453.1 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
[21:30:35][I][logger:214]: Log initialized
[21:30:35][I][app:029]: Running through setup()...
[21:30:35][I][i2c.arduino:161]: Performing I2C bus recovery
[21:30:40]E (10193) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[21:30:40]E (10193) task_wdt:  - loopTask (CPU 1)
[21:30:40]E (10193) task_wdt: Tasks currently running:
[21:30:40]E (10193) task_wdt: CPU 0: IDLE0
[21:30:40]E (10193) task_wdt: CPU 1: IDLE1
[21:30:40]E (10193) task_wdt: Aborting.
[21:30:40]abort() was called at PC 0x4014360c on core 0
[21:30:40]
[21:30:40]ELF file SHA256: 0000000000000000
[21:30:40]
[21:30:40]Backtrace: 0x40088efc:0x3ffbf870 0x40089179:0x3ffbf890 0x4014360c:0x3ffbf8b0 0x40087785:0x3ffbf8d0 0x4015901f:0x3ffbc160 0x40144f17:0x3ffbc180 0x4008b949:0x3ffbc1a0 0x4008a18a:0x3ffbc1c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40088efc: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x40089179: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x4014360c: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c:252
WARNING Decoded 0x40087785: _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1154
WARNING Decoded 0x4015901f: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c:492
WARNING Decoded 0x40144f17: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c:108
WARNING Decoded 0x4008b949: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008a18a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[21:30:41]
[21:30:41]Rebooting...
[21:30:41]ets Jul 29 2019 12:21:46
[21:30:41]
[21:30:41]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:30:41]configsip: 0, SPIWP:0xee
[21:30:41]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:30:41]mode:DIO, clock div:2
[21:30:41]load:0x3fff0018,len:4
[21:30:41]load:0x3fff001c,len:1044
[21:30:41]load:0x40078000,len:10124
[21:30:41]load:0x40080400,len:5828
[21:30:41]entry 0x400806a8
[21:30:41][I][logger:214]: Log initialized
[21:30:41][I][app:029]: Running through setup()...
[21:30:41][I][i2c.arduino:161]: Performing I2C bus recovery
[21:30:45]E (10192) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[21:30:45]E (10192) task_wdt:  - loopTask (CPU 1)
[21:30:45]E (10192) task_wdt: Tasks currently running:
[21:30:45]E (10192) task_wdt: CPU 0: IDLE0
[21:30:45]E (10192) task_wdt: CPU 1: IDLE1
[21:30:45]E (10192) task_wdt: Aborting.
[21:30:45]abort() was called at PC 0x4014360c on core 0
[21:30:45]
[21:30:45]ELF file SHA256: 0000000000000000
[21:30:45]
[21:30:45]Backtrace: 0x40088efc:0x3ffbf870 0x40089179:0x3ffbf890 0x4014360c:0x3ffbf8b0 0x40087785:0x3ffbf8d0 0x4015901f:0x3ffbc160 0x40144f17:0x3ffbc180 0x4008b949:0x3ffbc1a0 0x4008a18a:0x3ffbc1c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40088efc: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x40089179: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x4014360c: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c:252
WARNING Decoded 0x40087785: _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1154
WARNING Decoded 0x4015901f: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c:492
WARNING Decoded 0x40144f17: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c:108
WARNING Decoded 0x4008b949: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008a18a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[21:30:46]
[21:30:46]Rebooting...
[21:30:46]ets Jul 29 2019 12:21:46
[21:30:46]
[21:30:46]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:30:46]configsip: 0, SPIWP:0xee
[21:30:46]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:30:46]mode:DIO, clock div:2
[21:30:46]load:0x3fff0018,len:4
[21:30:46]load:0x3fff001c,len:1044
[21:30:46]load:0x40078000,len:10124
[21:30:46]load:0x40080400,len:5828
[21:30:46]entry 0x400806a8
[21:30:46][I][logger:214]: Log initialized
[21:30:46][I][app:029]: Running through setup()...
[21:30:46][I][i2c.arduino:161]: Performing I2C bus recovery
[21:30:51]E (10192) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[21:30:51]E (10192) task_wdt:  - loopTask (CPU 1)
[21:30:51]E (10192) task_wdt: Tasks currently running:
[21:30:51]E (10192) task_wdt: CPU 0: IDLE0
[21:30:51]E (10192) task_wdt: CPU 1: IDLE1
[21:30:51]E (10192) task_wdt: Aborting.
[21:30:51]abort() was called at PC 0x4014360c on core 0
[21:30:51]
[21:30:51]ELF file SHA256: 0000000000000000
[21:30:51]
[21:30:51]Backtrace: 0x40088efc:0x3ffbf870 0x40089179:0x3ffbf890 0x4014360c:0x3ffbf8b0 0x40087785:0x3ffbf8d0 0x4015901f:0x3ffbc160 0x40144f17:0x3ffbc180 0x4008b949:0x3ffbc1a0 0x4008a18a:0x3ffbc1c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40088efc: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x40089179: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x4014360c: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c:252
WARNING Decoded 0x40087785: _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1154
WARNING Decoded 0x4015901f: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c:492
WARNING Decoded 0x40144f17: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c:108
WARNING Decoded 0x4008b949: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008a18a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[21:30:52]
[21:30:52]Rebooting...
[21:30:52]ets Jul 29 2019 12:21:46
[21:30:52]
[21:30:52]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:30:52]configsip: 0, SPIWP:0xee
[21:30:52]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:30:52]mode:DIO, clock div:2
[21:30:52]load:0x3fff0018,len:4
[21:30:52]load:0x3fff001c,len:1044
[21:30:52]load:0x40078000,len:10124
[21:30:52]load:0x40080400,len:5828
[21:30:52]entry 0x400806a8
[21:30:52][I][logger:214]: Log initialized
[21:30:52][I][app:029]: Running through setup()...
[21:30:52][I][i2c.arduino:161]: Performing I2C bus recovery
[21:30:56]E (10192) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[21:30:56]E (10192) task_wdt:  - loopTask (CPU 1)
[21:30:56]E (10192) task_wdt: Tasks currently running:
[21:30:56]E (10192) task_wdt: CPU 0: IDLE0
[21:30:56]E (10192) task_wdt: CPU 1: IDLE1
[21:30:56]E (10192) task_wdt: Aborting.
[21:30:56]abort() was called at PC 0x4014360c on core 0
[21:30:56]
[21:30:56]ELF file SHA256: 0000000000000000
[21:30:56]
[21:30:56]Backtrace: 0x40088efc:0x3ffbf870 0x40089179:0x3ffbf890 0x4014360c:0x3ffbf8b0 0x40087785:0x3ffbf8d0 0x4015901f:0x3ffbc160 0x40144f17:0x3ffbc180 0x4008b949:0x3ffbc1a0 0x4008a18a:0x3ffbc1c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40088efc: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x40089179: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x4014360c: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c:252
WARNING Decoded 0x40087785: _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1154
WARNING Decoded 0x4015901f: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c:492
WARNING Decoded 0x40144f17: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c:108
WARNING Decoded 0x4008b949: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008a18a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[21:30:57]
[21:30:57]Rebooting...
[21:30:57]ets Jul 29 2019 12:21:46
[21:30:57]
[21:30:57]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:30:57]configsip: 0, SPIWP:0xee
[21:30:57]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:30:57]mode:DIO, clock div:2
[21:30:57]load:0x3fff0018,len:4
[21:30:57]load:0x3fff001c,len:1044
[21:30:57]load:0x40078000,len:10124
[21:30:57]load:0x40080400,len:5828
[21:30:57]entry 0x400806a8
[21:30:57][I][logger:214]: Log initialized
[21:30:57][I][app:029]: Running through setup()...
[21:30:57][I][i2c.arduino:161]: Performing I2C bus recovery
[21:31:02]E (10192) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[21:31:02]E (10192) task_wdt:  - loopTask (CPU 1)
[21:31:02]E (10192) task_wdt: Tasks currently running:
[21:31:02]E (10192) task_wdt: CPU 0: IDLE0
[21:31:02]E (10192) task_wdt: CPU 1: IDLE1
[21:31:02]E (10192) task_wdt: Aborting.
[21:31:02]abort() was called at PC 0x4014360c on core 0
[21:31:02]
[21:31:02]ELF file SHA256: 0000000000000000
[21:31:02]
[21:31:02]Backtrace: 0x40088efc:0x3ffbf870 0x40089179:0x3ffbf890 0x4014360c:0x3ffbf8b0 0x40087785:0x3ffbf8d0 0x4015901f:0x3ffbc160 0x40144f17:0x3ffbc180 0x4008b949:0x3ffbc1a0 0x4008a18a:0x3ffbc1c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40088efc: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x40089179: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x4014360c: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c:252
WARNING Decoded 0x40087785: _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1154
WARNING Decoded 0x4015901f: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c:492
WARNING Decoded 0x40144f17: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c:108
WARNING Decoded 0x4008b949: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008a18a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[21:31:03]
[21:31:03]Rebooting...
[21:31:03]ets Jul 29 2019 12:21:46
[21:31:03]
[21:31:03]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:31:03]configsip: 0, SPIWP:0xee
[21:31:03]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:31:03]mode:DIO, clock div:2
[21:31:03]load:0x3fff0018,len:4
[21:31:03]load:0x3fff001c,len:1044
[21:31:03]load:0x40078000,len:10124
[21:31:03]load:0x40080400,len:5828
[21:31:03]entry 0x400806a8
[21:31:03][I][logger:214]: Log initialized
[21:31:03][I][app:029]: Running through setup()...
[21:31:03][I][i2c.arduino:161]: Performing I2C bus recovery
[21:31:07]E (10192) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[21:31:07]E (10192) task_wdt:  - loopTask (CPU 1)
[21:31:07]E (10192) task_wdt: Tasks currently running:
[21:31:07]E (10192) task_wdt: CPU 0: IDLE0
[21:31:07]E (10192) task_wdt: CPU 1: IDLE1
[21:31:07]E (10192) task_wdt: Aborting.
[21:31:07]abort() was called at PC 0x4014360c on core 0
[21:31:07]
[21:31:07]ELF file SHA256: 0000000000000000
[21:31:07]
[21:31:07]Backtrace: 0x40088efc:0x3ffbf870 0x40089179:0x3ffbf890 0x4014360c:0x3ffbf8b0 0x40087785:0x3ffbf8d0 0x4015901f:0x3ffbc160 0x40144f17:0x3ffbc180 0x4008b949:0x3ffbc1a0 0x4008a18a:0x3ffbc1c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40088efc: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x40089179: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
WARNING Decoded 0x4014360c: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c:252
WARNING Decoded 0x40087785: _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1154
WARNING Decoded 0x4015901f: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c:492
WARNING Decoded 0x40144f17: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c:108
WARNING Decoded 0x4008b949: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
WARNING Decoded 0x4008a18a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[21:31:08]
[21:31:08]Rebooting...
...
...

Additional information

No response

velaar commented 2 years ago

Just reproduced this exact problem. Did you have a chance to test if it's i2c pin-dependent?

branch14 commented 2 years ago

I have the same issue with TSL2591.

It does not seem to be pin related.

Checked with:

i2c:
  sda: 16
  scl: 17

If I remove either SDA or SCL connection to TSL2591 the device boots fine with:

[19:06:22][C][i2c.arduino:038]: I2C Bus:
[19:06:22][C][i2c.arduino:039]:   SDA Pin: GPIO16
[19:06:22][C][i2c.arduino:040]:   SCL Pin: GPIO17
[19:06:22][C][i2c.arduino:041]:   Frequency: 50000 Hz
[19:06:22][C][i2c.arduino:044]:   Recovery: bus successfully recovered

If TSL2591 is fully connected the device crashes here:

[19:05:40][I][i2c.arduino:161]: Performing I2C bus recovery
[19:05:45]E (10230) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:

My controller is a "Goouuu-ESP32" (ESP-WROOM-32, nodemcu-32). Power via USB does suffice, right? Just checking every assumption.

I also tried to connect a CCS811 and another (unsupported) I2C device. Both worked fine.

dmpolukhin commented 2 years ago

I had similar issue and resolved it by checking sensor address and wiring. I tried to use power supply from GPIO pins but it looks like esphome initializes them after I2C and if anything is wrong with I2C it enters in reboot loop.

xuxiaohe0308 commented 2 years ago

Thanks for everyone. I solved this problem by using shorter wires, so maybe this is a wire quality problem. But it's weird that I use the same wires on i2c on RaspberryPi and it works normally.

velaar commented 2 years ago

Thank you! I’ve traced the problem to a faulty SCD30 sensor. Replacing the sensor fixed the problem. We might want to document this somewhere.

On Aug 20, 2022, at 7:05 AM, Dmitry Polukhin @.***> wrote:

 I had similar issue and resolved it by checking sensor address and wiring. I tried to use power supply from GPIO pins but it looks like esphome initializes them after I2C and if anything is wrong with I2C it enters in reboot loop.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.