I have a switch that is toggled by a Cover. The ESP32 panics when the Cover is used:
[10:24:54][D][cover.mqtt:048]: 'Garage Door Opener': Stopping cover...
[10:24:54][D][binary_sensor.mqtt:066]: 'Garage Door Switch': Sending state ON
[10:24:55][D][binary_sensor.mqtt:066]: 'Garage Door Switch': Sending state OFF
[10:24:55]Guru Meditation Error: Core 1 panic'ed (LoadProhibited)
[10:24:55]. Exception was unhandled.
[10:24:55]Core 1 register dump:
[10:24:55]PC : 0x4014c0d6 PS : 0x00060130 A0 : 0x800d2e7e A1 : 0x3ffd2450
[10:24:55]A2 : 0x3ffcdf64 A3 : 0x00000000 A4 : 0x00000050 A5 : 0x3ffd2430
[10:24:55]A6 : 0x08fffffd A7 : 0x00000000 A8 : 0x8014c772 A9 : 0x3ffd2430
[10:24:55]A10 : 0xa5a5a5a5 A11 : 0x00000000 A12 : 0x00000005 A13 : 0x00000020
[10:24:55]A14 : 0x00000020 A15 : 0x3ffcdf04 SAR : 0x0000001b EXCCAUSE: 0x0000001c
[10:24:55]EXCVADDR: 0xa5a5a5a5 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
[10:24:55]
[10:24:55]Backtrace: 0x4014c0d6:0x3ffd2450 0x400d2e7b:0x3ffd2470 0x4014c0da:0x3ffd2490 0x400d2e8b:0x3ffd24b0 0x400d5041:0x3ffd24d0 0x400d5131:0x3ffd24f0 0x400d2fb5:0x3ffd2510 0x400d2482:0x3ffd2530 0x400fc3a6:0x3ffd2550
[10:24:55]
[10:24:55]Rebooting...
[10:24:55]ets Jun 8 2016 00:22:57
[10:24:55]
[10:24:55]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[10:24:55]configsip: 0, SPIWP:0xee
[10:24:55]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[10:24:55]mode:DIO, clock div:2
[10:24:55]load:0x3fff0018,len:4
[10:24:55]load:0x3fff001c,len:812
[10:24:55]load:0x40078000,len:0
[10:24:55]load:0x40078000,len:11584
[10:24:55]entry 0x40078a60
[10:24:55][I][log_component:056]: Log initialized
[10:24:55][C][ota:163]: There have been 0 suspected unsuccessful boot attempts.
[10:24:55][I][application:044]: Application::setup()
[10:24:55][C][output.gpio:023]: Setting up GPIO Binary Output...
[10:24:55][C][esphal:053]: GPIO Pin 17 with mode OUTPUT
[10:24:55][C][output.ledc:026]: Setting up ledc output...
[10:24:55][C][output.ledc:027]: Pin: 2
[10:24:55][C][output.ledc:028]: LEDC Channel: 1
[10:24:55][C][output.ledc:029]: Frequency: 1000.0
[10:24:55][C][output.ledc:030]: Bit Depth: 12
[10:24:55][C][light.state:179]: Setting up light 'Garage Status LED'...
[10:24:55][C][wifi:031]: Setting up WiFi...
[10:24:55][C][wifi:178]: Setting up STA...
I can directly toggle the switch until I'm blue in the face and it works fine, but using the cover will cause a crash every time. I've tried both with Optimistic, and with a Lambda that checks a reed sensor to determine position.