mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #854] timer crash when using it with this library #718
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#718
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Adrianotiger on GitHub (Mar 20, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/854
Basic Infos
Hardware
WiFimanager Branch/Release: Development
Esp8266/Esp32: ESP32
Hardware: DevKit 1.0
ESP Core Version: 1.0.1 and 1.0.2 RC1
Description
If using this library with a timer, the esp will crash with this error:
Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)
Sketch
Debug Messages
@tablatronix commented on GitHub (Mar 20, 2019):
This might be a esp lib bug, you would have to debug or get a stack trace to find out
@Adrianotiger commented on GitHub (Mar 20, 2019):
Thank you for the fast reply.
Yes, I am trying to find out what it can be. But I don't get any stack trace to find out what it can be.
I saw that if I try to access a preference variable once the timer is started, the sketch will crash too. I just noticed it with this library and posted it here. Sorry.
@tablatronix commented on GitHub (Mar 20, 2019):
not sure how you debug esp32, maybe someone else can.
is IRAM_ATTR correct?
@tablatronix commented on GitHub (Mar 20, 2019):
https://github.com/espressif/arduino-esp32/issues/1907
https://github.com/espressif/esp-idf/issues/1299
https://github.com/NeoCat/ESP32-P3RGB64x32MatrixPanel/issues/4
@tablatronix commented on GitHub (Mar 20, 2019):
See if those provide any answers
@Adrianotiger commented on GitHub (Mar 21, 2019):
I got an answer directly on the espressif page:
I am accessing the hardware from an interrupt and this should never be done if the interrupt occurs so fast (every 10us - 100us).
dacWrite need to access some registers and is not so fast like "digitalRead/digitalWrite". If this happens during another access to parameters or memory-call, this can cause a crash.
Since this WiFiManager-library access the nvs, no interrupt routines with hardware access should be executed in background, as this could cause a crash.
Shortly: it was my error. Thanks you for the links!