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

Add linker flag ICACHE_RAM_ATTR in ISR to support ESP8266 controllers #26

Open
roku133 opened this issue Jul 31, 2020 · 1 comment
Open

Comments

@roku133
Copy link

roku133 commented Jul 31, 2020

ISR in ESP8266 based controllers have to be located in RAM area to avoid crashes during execution.
Therefore, I propose to conditionally add the flag ICACHE_RAM_ATTR in the source code.

My addition in RFControl.cpp
287c287
< void ICACHE_RAM_ATTR handleInterrupt() {

void handleInterrupt() {
fixed the issue.

@roku133
Copy link
Author

roku133 commented Jul 31, 2020

sorry concerning the formatting problem in my comment above ...

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

No branches or pull requests

1 participant