How about this new error with backtrace?

ESP Now sender, this is the first time I’ve gotten here. There is no ammonia, no LPG.

ELF file SHA256: 0000000000000000

Rebooting…
�D�L�1�))�z���! �
�D�L�1�))�z���! �Mode: STA
Channel: 1
SSID (12): TP-Link_7C28
Passphrase (8): 64411811
BSSID set: 0
Mode: STA
Channel: 2
SSID (12): TP-Link_7C28
Passphrase (8): 64411811
BSSID set: 0
E (2046) ESPNOW: Peer interface is invalid
Failed to add peer
LPG Gas Detected!
Ammonia Detected!
Carbon Monoxide Detected!
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x40133403 PS : 0x00060430 A0 : 0x800d63ee A1 : 0x3ffb2730
A2 : 0x00000000 A3 : 0x3ffb279a A4 : 0x00000002 A5 : 0x00000001
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800d6962 A9 : 0x3ffb2740
A10 : 0x00000002 A11 : 0x3f40531c A12 : 0x00000002 A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x0000001d EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000000c LBEG : 0x40089c21 LEND : 0x40089c31 LCOUNT : 0xffffffff

Backtrace:0x40133400:0x3ffb27300x400d63eb:0x3ffb2750 0x400d6581:0x3ffb2790 0x400d2a44:0x3ffb27c0 0x400d85cd:0x3ffb2820
#0 0x40133400:0x3ffb27300 in Adafruit_I2CDevice::write(unsigned char const*, unsigned int, bool, unsigned char const*, unsigned int) at .pio/libdeps/esp32dev/Adafruit BusIO/Adafruit_I2CDevice.cpp:73

I’ve just started getting this same error backtraced to the same module and function. I’ve been able to build and upload the part of the project that has that dependency on its own and the I2C works fine, but when it’s included with the rest of the project that is using wifi.h and some other libraries I get this error. Have you made any headway with this?

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1284
load:0x40078000,len:12808
load:0x40080400,len:3032
entry 0x400805e4
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x4013744b PS : 0x00060130 A0 : 0x800d3974 A1 : 0x3ffb2750
A2 : 0x00000000 A3 : 0x3ffb277c A4 : 0x00000001 A5 : 0x00000001
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800d96ac A9 : 0x3ffb26f0
A10 : 0x3ffbdc64 A11 : 0x00000001 A12 : 0xffffffff A13 : 0x00000001
A14 : 0x00000001 A15 : 0x00000001 SAR : 0x00000003 EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000000c LBEG : 0x40089d28 LEND : 0x40089d33 LCOUNT : 0xffffffff

Backtrace:0x40137448:0x3ffb27500x400d3971:0x3ffb2770 0x400d3739:0x3ffb27b0 0x400d2af7:0x3ffb27d0 0x400d9a26:0x3ffb2820
#0 0x40137448:0x3ffb27500 in Adafruit_I2CDevice::write(unsigned char const*, unsigned int, bool, unsigned char const*, unsigned int) at .pio/libdeps/nodemcu-32s/Adafruit BusIO/Adafruit_I2CDevice.cpp:95

so just after doing some sniffing around it may be that its something to do with using I2C and SPI at the same time on the ESP32.

Ok problem solved. After using some super fancy print line debugging it turns out it just didn’t like the lostPower() function from the Adafruit RTClib library. Which was working fine on its own, but was just throwing that Guru error. I just removed it since it wasn’t adding much with the battery backup to the RTC module that will last 8 years or so and things are working fine now.

1 Like

Without being able to articulate it, this is what I thought was going on, tripping up the guru by creating pauses with confusion.