-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
SPIFFS + IRremote = Guru Meditation Error #2953
Comments
Which Guru mediation error? If it is "cache region accessed but cache disabled" look at the code of Chuck. |
Yes thats the errror. I've tried just writing IRAM_ATTR bettwen voind and onTimer() {} but didnt work, idk if thats just as simple as that, if it is, didnt work. |
@matbks with a 50 microsecond interval on the timer ISR and auto-reload you won't be able to access SPIFFS (or flash for that matter) anytime the IR code is "active". You have two options:
Also note that though the comment claims a 50 nanosecond interval it is actually using a 50 microsecond interval based on the divider (default APB clock used by the HW timers is 80Mhz). |
@atanisoft I appreciate your help. |
As I don't use that library or know anything about it I'm not sure how to help on it. This is also not the first time someone has had a problem with this particular library and SPIFFS access. |
Hello @matbks, this worked for me:
|
@MorpheusDe97 Thank you so much! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
Hi,
SPIFFS.h and IRremote.h are not working together.
When the ESP32 run the following line it crashes:
BUT, it only happens if i use the following line in my setup:
irrecv.enableIRIn();
irrecv.enableIRIn(); Begin the receiving process. This will enable the timer interrupt which consumes a small amount of CPU every 50 µs. (according library's owner)
from
#include <IRremote.h>
i found the following on IRremote libraries (IRrecv.cpp)
Looks like SPIFFS and IRremote can't work together. idk if it's something to do with Timer.
I saved the error and decoded it. Follows:
DECODED ERROR:
ERROR:
I am using:
ESP32 DEV KIT
WINDOWS 10 64b
libraries:
#include <WiFi.h>
#include "SPIFFS.h"
#include "ESPAsyncWebServer.h"
#include <ArduinoOTA.h>
#include <IOXhop_FirebaseESP32.h>
#include <IRremote.h>
context:
Its an ESP32 webserver offline.
When the user conects to the AcessPoint it can see a page through browser, this page contains a JavaScript code that allows me to get some information from the user throw text boxes.
To use JavaScript in this code without WiFi conection i need to bring it with the ESP32 throw SPIFFS.
This project also use a Infrared LED to comunicate with other devices.
So i can't afford not using Infrared libraries or SPIFFS library.
The text was updated successfully, but these errors were encountered: