2.5.0 SPIFFS fatal crash with Illegal Instruction on call to millis() within interrupt handler #5788
Labels
waiting for feedback
Waiting on additional info. If it's not received, the issue may be closed.
Basic Infos
Platform
Settings in IDE
Problem Description
In 2.5.0 core, I am facing recurrent ESP crashes at the millis() line of the code:
void doCnt() // This is an interrupt handler function
{
if ((millis() - CntLMillis) > cntBounce) // << This line of code
{
CntLMillis = millis();
checkCnt = true;
}
}
The crash decode shows that its a Fatal Exception 0 - Illegal Command.
millis() is the only command on that line.
The stack shows a lot of SPIFFS activity then a esp_yield and then this crash.
I think it has something to do with interrupt handling along with SPIFFS activity. I cannot stop my interrupt captures during SPIFFS writes, due to application requirements.
I upgraded from the 2.4.2 core to 2.5.0.
My same sketch was very stable in the older core.
After I shifted to the older code, things are stable again.
The text was updated successfully, but these errors were encountered: