-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Timer Interrupts and SPIFFS will crash the ESP32 #1141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
OK so if you take the SPIFFS example and you just add a Timer you will see it will crash. I need a Fix ASAP.
And here is the debug of it.
|
Hi, change void timerIsr() to void IRAM_ATTR timerIsr() and place it before setup() function. |
@allex1978 thanks so much for the help. I had to add IRAM_ATTR to some more function that the interrupt calls. I followed this https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/ Last time I looked that was not there but it seems it is added now. |
For anyone else having this issue, the solution is to set |
Please fill the info fields, it helps to get you faster support ;)
----------------------------- Remove above -----------------------------
Hardware:
Board: ESP32 Dev Module?
Core Installation/update date: 11/jul/2017?
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
If I enable a timer interrupt and I access a SPIFF file the ESP32 will reboot with a panic
If I add the "timerAlarmDisable(timer);" before I do any SPIFFS and then "timerAlarmEnable(timer);" then it seems to work.
This is just an extract of the big program.
Sketch:
Debug Messages:
The text was updated successfully, but these errors were encountered: