Code Compiles, but "Exception was unhandled" During Boot


I’m curious on what I’m doing wrong this this basic code. I’m simply trying to use a switch to toggle the lights on an LED strip:

  - platform: fastled_clockless
    chipset: WS2811
    pin: GPIO1
    num_leds: 10
    rgb_order: RGB
    name: "led_stop_light"
    id: led_stop_light
    default_transition_length: 0s
    color_correct: [100%, 100%, 100%]

  - platform: gpio
    name: "test button"
    pin: GPIO2
    id: relay
      - logger.log: "Light Turned On!"
      - light.turn_on:
          id: led_stop_light
          brightness: 100%
          red: 100%
          green: 0%
          blue: 0%
      - logger.log: "Switch Turned Off!"
      - light.turn_on:
          id: led_stop_light
          brightness: 100%
          red: 0%
          green: 100%
          blue: 0%

The code compiles fine, but I get the following errors when it tries to boot:

[07:55:30]ets Jun  8 2016 00:22:57
[07:55:30]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[07:55:30]configsip: 0, SPIWP:0xee
[07:55:30]mode:DIO, clock div:2
[07:55:30]entry 0x400806ac
[07:55:31][I][logger:242]: Log initialized
[07:55:31][C][ota:461]: There have been 5 suspected unsuccessful boot attempts.
[07:55:31][D][esp32.preferences:114]: Saving preferences to flash...
[07:55:31][I][app:029]: Running through setup()...
[07:55:31][C][fastled:012]: Setting up FastLED light...
[07:55:31][C][switch.gpio:011]: Setting up GPIO Switch 'fake button'...
[07:55:31][D][switch:017]: 'fake button' Turning OFF.
[07:55:31][D][switch:037]: 'fake button': Sending state OFF
[07:55:31][D][main:373]: Switch Turned Off!
[07:55:31][D][light:035]: 'led_stop_light' Setting:
[07:55:31][D][light:040]:   Color mode: RGB
[07:55:31]Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
[07:55:31]Core 1 register dump:
[07:55:31]PC      : 0x400d4417  PS      : 0x00060f30  A0      : 0x800d7014  A1      : 0x3ffb1870  
[07:55:31]A2      : 0x00000000  A3      : 0x00000001  A4      : 0x0000002c  A5      : 0x3ffb95b8  
[07:55:31]A6      : 0x3f800000  A7      : 0x3f800000  A8      : 0x800d4412  A9      : 0x3ffb1830  
[07:55:31]A10     : 0x3ffb18b4  A11     : 0x3ffb18b0  A12     : 0x0000000a  A13     : 0x3ffb189c  
[07:55:31]A14     : 0x3f800000  A15     : 0x3f800000  SAR     : 0x00000007  EXCCAUSE: 0x0000001d  
[07:55:31]EXCVADDR: 0x000000c8  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  
[07:55:31]ELF file SHA256: 0000000000000000
[07:55:31]Backtrace: 0x400d4417:0x3ffb1870 0x400d7011:0x3ffb1910 0x400d626e:0x3ffb1930 0x400e554c:0x3ffb1990 0x4017056b:0x3ffb1ac0 0x4017057f:0x3ffb1ae0 0x4017061b:0x3ffb1b00 0x400e4e63:0x3ffb1b20 0x400dd059:0x3ffb1b40 0x400d2ab9:0x3ffb1b70 0x400dcf4b:0x3ffb1bc0 0x400d2805:0x3ffb1be0 0x400d2830:0x3ffb1c10 0x401702c1:0x3ffb1c30 0x40170381:0x3ffb1c50 0x400e3109:0x3ffb1c70 0x400e64b6:0x3ffb1cc0 0x400f310e:0x3ffb1fb0 0x4008aa5a:0x3ffb1fd0
[07:55:31]ets Jun  8 2016 00:22:57
[07:55:31]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[07:55:31]configsip: 0, SPIWP:0xee
[07:55:31]mode:DIO, clock div:2
[07:55:31]entry 0x400806ac

I’ve tried different GPIO pins for the switch (which there is no physical button at the moment). I’m new to writing my own ESPHome code, so any help would be appreciated.


Not sure, but have you read the fastled docs?


FastLED does not work as expected with Arduino 3 or newer for ESP8266. For now, you can either downgrade the arduino version or use NeoPixelBus Light.

esp8266: framework: version: 2.7.4

See these related issues:

1 Like