trvrnrth / esphome-bsec-bme680

ESPHome component for the Bosch BME680 sensor via BSEC providing temperature, humidity, pressure and indoor air quality measurements.
85 stars 17 forks source link

Boot Loop when flashing the custom component #36

Closed DonRichie closed 3 years ago

DonRichie commented 3 years ago

Hello,

Unfortunately I can't make the custom component work. After flashing the new firmware the device enters a boot loop until it is falling back to safe mode.

This is working without any problems:

i2c:
 - id: bus_a
   sda: GPIO14
   scl: GPIO12
   scan: False

sensor:
  - platform: bme680
    i2c_id: bus_a
    address: 0x77
    update_interval: ${bme680_update_interval}

  # BME680 RAW DATA
    temperature:
      name: "${device_name_frontend} Temperature"
      id: "bme680_${device_name}_temperature"
    pressure:
      name: "${device_name_frontend} Pressure"
      id: "bme680_${device_name}_pressure"
    humidity:
      name: "${device_name_frontend} Relative Humidity"
      id: "bme680_${device_name}_relative_humidity"
    gas_resistance:
      name: "${device_name_frontend} Gas Resistance" 
      id: "bme680_${device_name}_gas_resistance"

This doesn't work. The git repo was cloned to the directory bme680_bsec right next to the yaml file:

i2c:
 - id: bus_a
   sda: GPIO14
   scl: GPIO12
   scan: False

bme680_bsec:
    i2c_id: bus_a
    address: 0x77

sensor:
  - platform: bme680_bsec
    temperature:
      name: "BME680 Temperature"
    humidity:
      name: "BME680 Humidity"

Does someone have an idea how to debug this?

The Bootloop gives an error via serial console which might be decodable with platform.io:

[08:25:27]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[08:25:27]
[08:25:27]Exception (2):
WARNING Exception type: unknown
[08:25:27]epc1=0x3fff2250 epc2=0x00000000 epc3=0x00000000 excvaddr=0x3fff2250 depc=0x00000000
[08:25:27]
[08:25:27]>>>stack>>>
WARNING Found stack trace! Trying to decode it
[08:25:27]
[08:25:27]ctx: sys
[08:25:27]sp: 3fffedac end: 3fffffb0 offset: 0190
[08:25:27]3fffef3c:  3ffe8574 00000000 3fffdad0 3fff2250  
[08:25:27]3fffef4c:  4022c704 3ffebfa0 40000f49 3fffdab0  
WARNING Decoded 0x4022c704: loop_task(ETSEventTag*) at core_esp8266_main.cpp
[08:25:27]3fffef5c:  40000f49 40000e19 00000005 0007aadc  
[08:25:27]3fffef6c:  00000000 3fffefc0 aa55aa55 000000f4  
[08:25:27]3fffef7c:  401051c5 401051cb 0007aadc 00000000  
WARNING Decoded 0x401051c5: call_user_start_local
WARNING Decoded 0x401051cb: call_user_start_local
[08:25:27]3fffef8c:  094818c1 4010000d 4f6c5ee5 6c7e7df7  
WARNING Decoded 0x4010000d: call_user_start
[08:25:27]3fffef9c:  b483a50a 40100584 3fffef3c 40255e5d  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
WARNING Decoded 0x40255e5d: cont_continue at cont.S.o
[08:25:27]3fffefac:  3ffffd98 3fffffc0 00000000 00000000  
[08:25:27]3fffefbc:  4000050c 4000e268 00000030 00000004  
[08:25:27]3fffefcc:  ffffffff 40100584 00000000 0000a000  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3fffefdc:  0000b000 00000000 000000b0 00000000  
[08:25:27]3fffefec:  4000050c 40235a97 00000030 00000004  
WARNING Decoded 0x40235a97: memcpy_P at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/sys/xtensa/string_pgmspace.c:123
[08:25:27]3fffeffc:  ffffffff 40237f8e 3ffff310 3ffff203  
WARNING Decoded 0x40237f8e: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:233
[08:25:27]3ffff00c:  00000000 00000000 00000000 3ffe8304  
[08:25:27]3ffff01c:  3ffff1d9 40100584 4026c430 00000003  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
WARNING Decoded 0x4026c430: sleep_reset_analog_rtcreg_8266
[08:25:27]3ffff02c:  3ffff310 00000000 3ffff260 00000000  
[08:25:27]3ffff03c:  4000050c 402339f6 00000030 00000004  
WARNING Decoded 0x402339f6: _printf_common at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c:99
[08:25:27]3ffff04c:  ffffffff 402339d9 00000003 ffffffff  
WARNING Decoded 0x402339d9: _printf_common at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c:94
[08:25:27]3ffff05c:  00000000 00000006 00000000 3ffff170  
[08:25:27]3ffff06c:  3ffff1d9 0000000a 4026c430 00000003  
WARNING Decoded 0x4026c430: sleep_reset_analog_rtcreg_8266
[08:25:27]3ffff07c:  3ffff1c0 3ffe8304 3ffff260 40237ec4  
WARNING Decoded 0x40237ec4: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:180
[08:25:27]3ffff08c:  00000030 40237ec4 3ffff220 00000001  
WARNING Decoded 0x40237ec4: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:180
[08:25:27]3ffff09c:  00000000 000000a0 00c800c8 3ffff203  
[08:25:27]3ffff0ac:  3ffff1c0 00000001 00000000 0000000a  
[08:25:27]3ffff0bc:  00000000 00000001 00000000 0000000a  
[08:25:27]3ffff0cc:  00000000 40238378 3ffe8304 3ffff1c0  
WARNING Decoded 0x40238378: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:649
[08:25:27]3ffff0dc:  3ffff260 00000000 a0000000 00000000  
[08:25:27]3ffff0ec:  0000001c 00001000 00c800c8 00001000  
[08:25:27]3ffff0fc:  00000000 3ffff260 00000000 3ffff260  
[08:25:27]3ffff10c:  40237f8e 0000a000 3ffff203 3f800000  
WARNING Decoded 0x40237f8e: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:233
[08:25:27]3ffff11c:  00000030 40204917 00000030 40233ded  
WARNING Decoded 0x40204917: bsec_GasHumidityPreProcessor_updateInterfaceDependency
WARNING Decoded 0x40233ded: _printf_i at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c:194 (discriminator 1)
[08:25:27]3ffff12c:  00000003 3ffff260 00000003 3ffff260  
[08:25:27]3ffff13c:  40237f8e 3ffff1c0 3ffff200 3ffff170  
WARNING Decoded 0x40237f8e: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:233
[08:25:27]3ffff14c:  00000000 40100584 00ffffff 00000000  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff15c:  40237ec4 3ffff260 3ffff200 3ffff1c0  
WARNING Decoded 0x40237ec4: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:180
[08:25:27]3ffff16c:  4000050c 4010128e 00000030 00000008  
WARNING Decoded 0x4010128e: free
[08:25:27]3ffff17c:  ffffffff 4010128b 00000083 3fff45a8  
WARNING Decoded 0x4010128b: free
[08:25:27]3ffff18c:  ffff8000 000000a4 3fff2f60 3fff45bb  
[08:25:27]3ffff19c:  0000009c 000000ee 4026c430 00000003  
WARNING Decoded 0x4026c430: sleep_reset_analog_rtcreg_8266
[08:25:27]3ffff1ac:  00000020 3ffffb70 00000015 3fff45d0  
[08:25:27]3ffff1bc:  00000030 4023d8ce 00000030 00000008  
WARNING Decoded 0x4023d8ce: std::string::_M_mutate(unsigned int, unsigned int, unsigned int) at /workdir/arena.x86_64/gcc/xtensa-lx106-elf/libstdc++-v3/include/bits/basic_string.tcc:483
[08:25:27]3ffff1cc:  ffffffff 40100584 3fff45c4 00000000  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff1dc:  3fff45c0 40100584 00000000 00000003  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff1ec:  4000050c 401012c5 00000030 00000010  
WARNING Decoded 0x401012c5: malloc
[08:25:27]3ffff1fc:  ffffffff 401012c2 3fff45ac 3fff2f60  
WARNING Decoded 0x401012c2: malloc
[08:25:27]3ffff20c:  3fff45a8 40100584 3fff45a8 000000b7  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff21c:  000000db 000000ee 3ffea1d4 00000002  
[08:25:27]3ffff22c:  4000050c 4021a7bc 00000030 00000010  
WARNING Decoded 0x4021a7bc: esphome::ESPPreferences::make_preference(unsigned int, unsigned int, bool)
[08:25:27]3ffff23c:  ffffffff 40100584 00000e0feffe feefeffe  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff78c:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff79c:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff7ac:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff7bc:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff7cc:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff7dc:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff7ec:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff7fc:  feefeffe feefeffe feefeffe feefeffe  
[08:25:27]3ffff80c:  feefeffe 40100584 feefeffe feefeffe  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff81c:  feefeffe 40100584 feefeffe feefeffe  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff82c:  4000050c 4023759c 00000030 00000008  
WARNING Decoded 0x4023759c: _Balloc at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdlib/mprec.c:122
[08:25:27]3ffff83c:  4000050c 40100584 00000030 0000001f  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff84c:  ffffffff 40237d43 00000030 3ffff980  
WARNING Decoded 0x40237d43: __d2b at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdlib/mprec.c:826
[08:25:27]3ffff85c:  4000050c 4000c8fb 00000030 00000002  
[08:25:27]3ffff86c:  ffffffff 40236400 00000000 40000000  
WARNING Decoded 0x40236400: _dtoa_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdlib/dtoa.c:480
[08:25:27]3ffff87c:  00000000 3ff00000 7ff00000 00000000  
[08:25:27]3ffff88c:  3fe00000 000007fe 00100000 00000000  
[08:25:27]3ffff89c:  00000002 00000003 00000000 3ff00000  
[08:25:27]3ffff8ac:  00000030 00000000 00000000 00000000  
[08:25:27]3ffff8bc:  3fff458d 00000000 00000000 00000020  
[08:25:27]3ffff8cc:  4010079c feefeffe feefeffe 00000000  
WARNING Decoded 0x4010079c: ets_post
[08:25:27]3ffff8dc:  40101e0c 3ffebf60 401050a7 3fff2e2c  
WARNING Decoded 0x40101e0c: pp_post
WARNING Decoded 0x401050a7: lmacTxFrame
[08:25:27]3ffff8ec:  401012c2 00000001 40104282 3fff00e0  
WARNING Decoded 0x401012c2: malloc
WARNING Decoded 0x40104282: lmacRecycleMPDU
[08:25:27]3ffff8fc:  00000003 401046f3 00000000 0000001c  
WARNING Decoded 0x401046f3: lmacRecycleMPDU
[08:25:27]3ffff90c:  4000050c 40233352 00000030 0000001f  
WARNING Decoded 0x40233352: __cvt at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_float.c:114
[08:25:27]3ffff91c:  ffffffff 401041bb 0000007f 00000000  
WARNING Decoded 0x401041bb: lmacProcessTxSuccess
[08:25:27]3ffff92c:  00040000 40100584 7ff00000 00000002  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff93c:  4000050c 40100584 00080000 00000014  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff94c:  4000050c 4022cfb1 00000030 00000014  
WARNING Decoded 0x4022cfb1: Twi::WAIT_CLOCK_STRETCH()
[08:25:27]3ffff95c:  4000050c 40100584 00000030 00000005  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff96c:  ffffffff 40100584 41a00000 42c80000  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff97c:  4000050c 40202101 00000030 00000017  
WARNING Decoded 0x40202101: bsec_Bsec_checkSamplIntvlCompatibilty
[08:25:27]3ffff98c:  4000050c 4000e254 00000030 00000004  
[08:25:27]3ffff99c:  ffffffff 4000d9ce 00000000 0000a000  
[08:25:27]3ffff9ac:  00000010 00000020 00000000 00000000  
[08:25:27]3ffff9bc:  00000021 0000000a 4026c430 3ffffbd3  
WARNING Decoded 0x4026c430: sleep_reset_analog_rtcreg_8266
[08:25:27]3ffff9cc:  00003000 00000000 30000000 a0000000  
[08:25:27]3ffff9dc:  00000030 00000016 00000002 00000000  
[08:25:27]3ffff9ec:  00000008 40100584 3fff19b8 3ffffbe8  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffff9fc:  00000030 40100584 00000001 00000001  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffffa0c:  4000050c 40237fb5 00000030 00000010  
WARNING Decoded 0x40237fb5: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:240
[08:25:27]3ffffa1c:  ffffffff 40100584 00000000 3ffea3fb  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffffa2c:  00000007 00000007 00000000 3ffe8304  
[08:25:27]3ffffa3c:  4000050c 40233c58 00000030 00000000  
WARNING Decoded 0x40233c58: _printf_i at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c:141 (discriminator 2)
[08:25:27]3ffffa4c:  ffffffff 402383bf 00000014 00000004  
WARNING Decoded 0x402383bf: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:667
[08:25:27]3ffffa5c:  3ffffc30 40237ec4 3ffffbf0 00000001  
WARNING Decoded 0x40237ec4: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:180
[08:25:27]3ffffa6c:  00000010 40100584 3fff318f 3ffffbd3  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffffa7c:  3ffffb90 00000003 00000000 0000000a  
[08:25:27]3ffffa8c:  4000050c 402383f7 00000030 00000018  
WARNING Decoded 0x402383f7: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:681
[08:25:27]3ffffa9c:  ffffffff 402358dd 00000016 00000016  
WARNING Decoded 0x402358dd: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c:73
[08:25:27]3ffffaac:  00000000 40100584 00000001 00000000  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffffabc:  00000016 000000a0 4026c430 00000002  
WARNING Decoded 0x4026c430: sleep_reset_analog_rtcreg_8266
[08:25:27]3ffffacc:  4000050c 40241c59 00000030 00000018  
WARNING Decoded 0x40241c59: netif_set_addr_LWIP2 at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/netif.c:731
[08:25:27]3ffffadc:  ffffffff 40100584 00000000 00000001  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:27]3ffffaec:  00000000 3ffffc00 000005dc 00000089  
[08:25:27]3ffffafc:  4000050c 4023e6b7 00000030 00000018  
WARNING Decoded 0x4023e6b7: esp2glue_netif_update at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-lwip/lwip-git.c:417
[08:25:28]3ffffb0c:  ffffffff 4026162c 0000002f 00000025  
WARNING Decoded 0x4026162c: netif_set_addr at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-esp/lwip-esp.c:588
[08:25:28]3ffffb1c:  00000000 3ffffc00 000005dc 00000089  
[08:25:28]3ffffb2c:  00000003 00000000 00000065 00000003  
[08:25:28]3ffffb3c:  3fff2d8c 00000000 00000000 3fff2784  
[08:25:28]3ffffb4c:  00000030 4026162c 00000000 00000000  
WARNING Decoded 0x4026162c: netif_set_addr at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-esp/lwip-esp.c:588
[08:25:28]3ffffb5c:  00000000 00000000 00000006 3fff2dbf  
[08:25:28]3ffffb6c:  0000001b 00000000 00000065 00000000  
[08:25:28]3ffffb7c:  3fff2d8c 3fff2d8c 3ffffd40 3ffffd44  
[08:25:28]3ffffb8c:  00000030 40100584 00000014 0000002d  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:28]3ffffb9c:  3fff2dde 3ffffd00 ffffffff 00000002  
[08:25:28]3ffffbac:  4000050c 4025d36b 00000030 00000005  
WARNING Decoded 0x4025d36b: eagle_lwip_getif
[08:25:28]3ffffbbc:  ffffffff 3ffffc04 3ffffc08 3fff2784  
[08:25:28]3ffffbcc:  40241c54 4025ecf2 00000000 00000000  
WARNING Decoded 0x40241c54: netif_set_addr_LWIP2 at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/netif.c:692
WARNING Decoded 0x4025ecf2: wifi_get_opmode
[08:25:28]3ffffbdc:  00000001 4025ffdc 00000065 3fff2784  
WARNING Decoded 0x4025ffdc: wifi_station_get_hostname
[08:25:28]3ffffbec:  4023e5c0 00000000 00000000 00000000  
WARNING Decoded 0x4023e5c0: esp2glue_netif_set_up1down0 at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-lwip/lwip-git.c:485
[08:25:28]3ffffbfc:  4023e6a0 40100584 00000000 00000000  
WARNING Decoded 0x4023e6a0: esp2glue_netif_update at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-lwip/lwip-git.c:410
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:28]3ffffc0c:  ffffffff 40100584 00000000 000005dc  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:28]3ffffc1c:  4000050c 40100584 00000030 00000020  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:28]3ffffc2c:  ffffffff 402591f0 00000000 3ffebbea  
WARNING Decoded 0x402591f0: wDev_SetRxPolicy
[08:25:28]3ffffc3c:  4000050c 4000438f 00000030 00000016  
[08:25:28]3ffffc4c:  ffffffff 60000200 00000007 ffffffff  
[08:25:28]3ffffc5c:  80000000 20000000 3fff4b08 80000000  
[08:25:28]3ffffc6c:  203fd440 40100584 ffffffff 40100584  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:28]3ffffc7c:  3fff4b0c 40100584 003fd440 00000020  
WARNING Decoded 0x40100584: NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::i2s_slc_isr()
[08:25:28]3ffffc8c:  4000050c 4010128e 4000050c 40255e4f  
WARNING Decoded 0x4010128e: free
WARNING Decoded 0x40255e4f: cont_yield
[08:25:28]3ffffc9c:  00000030 00000014 ffffffff 4022c784  
WARNING Decoded 0x4022c784: esp_yield
[08:25:28]3ffffcac:  3fffefa0 00000001 00000000 0000000a  
[08:25:28]3ffffcbc:  3fff235c 3fff235c 00000000 00000008  
[08:25:28]3ffffccc:  3ffebd74 3fff235c 0000000a 3fff235c  
[08:25:28]3ffffcdc:  3fff3574 00000020 00000030 3fff1270  
[08:25:28]3ffffcec:  00000030 00000008 00000000 ffffffff  
[08:25:28]3ffffcfc:  00000000 3fff46b4 3fff3574 00000020  
[08:25:28]3ffffd0c:  00000030 00000008 3fff3574 00000020  
[08:25:28]3ffffd1c:  00000030 00001e28 000003c5 000003c5  
[08:25:28]3ffffd2c:  00000020 00000000 400042db 00000020  
[08:25:28]3ffffd3c:  401012c2 40004b31 3fff46b4 0000049c  
WARNING Decoded 0x401012c2: malloc
[08:25:28]3ffffd4c:  003fd000 40106524 3fff4b54 00000001  
WARNING Decoded 0x40106524: spi_flash_read
[08:25:28]3ffffd5c:  40101510 00001e28 000003c5 000003c5  
WARNING Decoded 0x40101510: calloc
[08:25:28]3ffffd6c:  40101003 4025eebf 00000001 3fff46b4  
WARNING Decoded 0x40101003: umm_free_core at umm_malloc.cpp
WARNING Decoded 0x4025eebf: wifi_set_broadcast_if
[08:25:28]3ffffd7c:  00000020 40105aa9 0000d47a 3fff235c  
WARNING Decoded 0x40105aa9: ets_timer_arm_new
[08:25:28]3ffffd8c:  00000000 3fff1270 3fff235c 0000000a  
[08:25:28]3ffffd9c:  3fff235c 3fff3574 00000020 4022c784  
WARNING Decoded 0x4022c784: esp_yield
[08:25:28]3ffffdac:  3fffefa0 3fff235c 3fff3574 00000020  
[08:25:28]3ffffdbc:  4022d722 40217d47 00000008 00000001  
WARNING Decoded 0x4022d722: __delay
WARNING Decoded 0x40217d47: esphome::wifi::WiFiComponent::wifi_sta_pre_setup_()
[08:25:28]3ffffdcc:  40217d4c 01010000 30e44323 3fff18c8  
WARNING Decoded 0x40217d4c: esphome::wifi::WiFiComponent::wifi_sta_pre_setup_()
[08:25:28]3ffffddc:  40201040 3fff3574 00000008 3fff3574  
WARNING Decoded 0x40201040: bsec_init
[08:25:28]3ffffdec:  402167ff 3fff3ca4 00000008 3fff18c8  
WARNING Decoded 0x402167ff: esphome::wifi::WiFiComponent::setup()
[08:25:28]3ffffdfc:  4022fcbc 3fff448c 0000000c 3fff18c8  
WARNING Decoded 0x4022fcbc: esphome::Component::call_setup()
[08:25:28]3ffffe0c:  4022fd1d 3fff3528 00000007 3fff18c8  
WARNING Decoded 0x4022fd1d: esphome::Component::call()
[08:25:28]3ffffe1c:  402197b1 3fff448c 0000000c 00000024  
WARNING Decoded 0x402197b1: esphome::Application::setup()
[08:25:28]3ffffe2c:  3fff3994 3fff41d8 000001e0 3fff41d4  
[08:25:28]3ffffe3c:  4021bd90 3fff3998 3fff23f0 3ffffe70  
WARNING Decoded 0x4021bd90: esphome::neopixelbus::NeoPixelBusLightOutputBase<NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>, NeoRgbFeature>::add_leds(unsigned short, unsigned char)
[08:25:28]3ffffe4c:  00000000 3fff1988 3fff18c8 3ffffe70  
[08:25:28]3ffffe5c:  4021c728 3f800000 3f800000 feefeffe  
WARNING Decoded 0x4021c728: setup
[08:25:28]3ffffe6c:  feefeffe 3fff417c 3fff4188 3fff4188  
[08:25:28]3ffffe7c:  3f666666 00000000 3f800000 3f800000  
[08:25:28]3ffffe8c:  000001f4 00000000 3f800000 3f800000  
[08:25:28]3ffffe9c:  3f800000 3f800000 3f800000 3f800000  
[08:25:28]3ffffeac:  000000fa 3f800000 3f800000 00000000  
[08:25:28]3ffffebc:  3f800000 00000000 3f800000 3f800000  
[08:25:28]3ffffecc:  000001f4 3fff3728 00000000 00000000  
[08:25:28]3ffffedc:  3fff3750 00000000 00000000 00000000  
[08:25:28]3ffffeec:  40231b70 00000000 40231b70 00000000  
WARNING Decoded 0x40231b70: precache
WARNING Decoded 0x40231b70: precache
[08:25:28]3ffffefc:  40231b70 00000000 40231b70 00000000  
WARNING Decoded 0x40231b70: precache
WARNING Decoded 0x40231b70: precache
[08:25:28]3fffff0c:  40231b70 00000000 00000000 3fff3698  
WARNING Decoded 0x40231b70: precache
[08:25:28]3fffff1c:  00000000 00000000 3fff36b0 00000000  
[08:25:28]3fffff2c:  00000000 00000000 40231b70 00000000  
WARNING Decoded 0x40231b70: precache
[08:25:28]3fffff3c:  40231b70 00000000 40231b70 00000000  
WARNING Decoded 0x40231b70: precache
WARNING Decoded 0x40231b70: precache
[08:25:28]3fffff4c:  40231b70 00000000 40231b70 00000000  
WARNING Decoded 0x40231b70: precache
WARNING Decoded 0x40231b70: precache
[08:25:28]3fffff5c:  00000000 3fff3cec 3fff3f8c 3fff4024  
[08:25:28]3fffff6c:  3fff404c 3fff3e94 3fff3d4c 3fff3bf4  
[08:25:28]3fffff7c:  feefeffe 3fff404c 00000060 3fff40ac  
[08:25:28]3fffff8c:  feefeffe feefeffe feefeffe feefeffe  
[08:25:28]3fffff9c:  3fff2250 3fffdad0 00000000 3fff2210  
[08:25:28]3fffffac:  4022c8a0 feefeffe feefeffe 3ffe8574  
WARNING Decoded 0x4022c8a0: loop_wrapper() at core_esp8266_main.cpp
[08:25:28]<<<stack<<<
[08:25:28]
[08:25:28]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
trvrnrth commented 3 years ago

Do you have only the BME680 component and sensors in your config or do you have others set up as well that could be contributing to memory/stack usage?

DonRichie commented 3 years ago

Damn you are right. The memory was exhausted. I had a small WS2812B strip configured, too. After removing it everything works as expected.

Thank you for your help.

DonRichie commented 3 years ago

@trvrnrth I don't think this issue was a memory issue. I changed to an ESP32 and the bootloop still happened.

Using Neopixel and bsec_bme680 at the same time does not work for me. Only one of them works. I am aware about your answer in issue #37 . I believe I suffer from the same bootloop. I am glad developers are on it.

Will use two ESP8266 as a workaround now. This gives me additional 0.6 W permanent Energy usage, but it will be the least pain.