-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Issue with using EEPROM with Server.on Event Handler #519
Comments
The first error indicates that you are trying to access flash during an interrupt, which is not allowed (it should raise a semaphore or flag and be processed outside the interrupt). The double exception at the end means that something catastrophic happened such that the panic routine couldn't even run, which is why there is no backtrace info. This can happen if you run out of stack memory. |
thanks my friend my ESP32 Wroom32 |
Maybe use volatile in interrupt for the variable and exit right away.
Sent from Yahoo Mail for iPhone
On Monday, May 27, 2019, 9:10 AM, lbernstone <notifications@github.com> wrote:
The first error indicates that you are trying to access flash during an interrupt, which is not allowed (it should raise a semaphore or flag and be processed outside the interrupt). The double exception at the end means that something catastrophic happened such that the panic routine couldn't even run, which is why there is no backtrace info. This can happen if you run out of stack memory.
What version of arduino-esp32 are you using? 1.0.3 (the git repo) has changed EEPROM to use nvs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
how can i use it ? |
Why on earth are you using EEPROM on an ESP32? |
why not ? |
a) Because it doesn't actually have any :) I hope that answers your questions, but anyway you should not be calling anything in an asynchronous callback that you wouldn't/couldn't call in an ISR. Set a global flag and deal with the event in the main loop, then reset the flag. |
@philbowles EEPROM has been rewritten to use NVS on ESP32 and no longer has it's own partition. No longer suffers from wear leveling issues either :) |
Just a little advisory on this topic, not sure if it means anything, but the arduino ide (even the latest version 1.8.9) has the SPIFFS .CSV files specifying EEPROM locations to use even though if you look in the GIT the .CSV's have been updated to remove EEPROM from spiffs 🤷♂ and as plaformio gets its "stuff" from the 1.8.9 installation it is also out of date vrs the git |
[STALE_SET] 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. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
i use AsyncWebServer and its working perfectly and i use on Event To Register handler like below
when i use the previous code the ESP32 crashed with memory error i think handler need permission to access memory
and this is the error log
any help please ?
The text was updated successfully, but these errors were encountered: