Skip to content

FastLed Esp32 Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1) #999

Closed

Description

@JonnyGree

Hello,

I have this code for control a stepper motor and a led trought EspNow. I try to summarize it for explain the problem.

1 - In main i recive data trought EspNow
void OnDataRecv()
... after some calculations
2- call MotorON() that turn led red and enable interrupt
void MotorON(){
leds[0] = CRGB::Red;
FastLED.show();
timer2 = timerBegin(2, 16, true);
timerAttachInterrupt(timer2, &onTimer2, true);
timerAlarmWrite(timer2, 100, true);
timerAlarmEnable(timer2);
}

3- do interrupt subroutine
void IRAM_ATTR onTimer2() {
portENTER_CRITICAL_ISR(&timerMux2);
...
portEXIT_CRITICAL_ISR(&timerMux2);
if (condition ) MotorOFF();
}
4-when the condition is satisfied i call MotorOFF(); that turn off ISR and turn led green.
void MotorOFF(){
timerEnd(timer2);
timer2 = NULL;
leds[0] = CRGB::Green;
//uncomment cause CRASH
//FastLED.show();
}

At this point if i uncomment the line FastLED.show(); i got this error
Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)

if it can help, in point 3 if (condition ) MotorOFF(); is put befor the port exit it get the error in both core

I Attach the code that run after 8 second this for point once.

Stepper_Control.zip

DO somebody know how to fix it ?

Activity

  1. szantogab commented on Nov 25, 2023

    @szantogab

    @sanvd0000 have you managed to figure out this one ? I'm having the same issue on an ESP32-C3. Thanks!

  2. Aayushyamaan-Shah commented on Dec 28, 2023

    @Aayushyamaan-Shah

    @sanvd0000 have you managed to figure out this one ? I'm having the same issue on an ESP32-C3. Thanks!

    I am facing the same issue. I tried disabling intrrupts, interrupt retrys and many other methods. It did not work.

  3. szantogab commented on May 14, 2024

    @szantogab

    If I try to call FastLED.show() as few times as possible, then this error goes away. But still it's not a good solution in my case. Any ideas? The same code works on an WeMos D1 mini.

  4. added
    type: bug
    platform: esp32
    priority: high
    area: core
    status: stale
    status: triage
    on Apr 16, 2026
  5. added a commit that references this issue on Aug 20, 2026
    5910be3
  6. moved this from Triage to Done in FastLED Trackeron Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreplatform: esp32priority: highstatus: stalestatus: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions