Skip to content
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

Fixed interrupt handling on ESP8266 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed interrupt handling on ESP8266 #27

wants to merge 1 commit into from

Conversation

matthias-bs
Copy link

With ESP8266 Board support package V3.0.0 an exception is issued whenever an interrupt occurs:

[...]
connected...yeey :)
HTTP server started
local ip:
192.168.156.166
*WM: freeing allocated params!
pm open,type:2 0
handleReceive()
ISR not in IRAM!

User exception (panic/abort/assert)
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Abort called

>>>stack>>>
[...]

This is not specific to RFControl. I found a hint to fix the issue as follows:
Change

void handleInterrupt() {

to

void ICACHE_RAM_ATTR handleInterrupt() {

and added some C pre-processing to leave the code untouched for non ESP8266 targets.

With ESP8266 Arduino noard support package V3.0.0 an exception is issued whenever an interrupt occurs:

[...]
connected...yeey :)
HTTP server started
local ip:
192.168.156.166
*WM: freeing allocated params!
pm open,type:2 0
handleReceive()
ISR not in IRAM!

User exception (panic/abort/assert)
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Abort called

>>>stack>>>
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant