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

"ISR not in IRAM" crash when RH_RF95.ccp is used with ESP8266 using latest "github.com/esp8266/Arduino" code #32

Closed
Rob58329 opened this issue Jul 6, 2019 · 2 comments

Comments

@Rob58329
Copy link

Rob58329 commented Jul 6, 2019

When "#include <RH_RF95.h>" is used in the Arduino-IDE with the ESP8266 and any recent "https://github.com/esp8266/Arduino" code (eg.May19), the ESP8266 crashes at run-time at "RH_RF95.init()" with the message "ISR not in IRAM".

I succeeded in fixing this by editing the "RH_RF95.cpp" file, and changing following 3 lines:
from "void RH_RF95::isr0()" to "void ICACHE_RAM_ATTR RH_RF95::isr0()"
from "void RH_RF95::isr1()" to "void ICACHE_RAM_ATTR RH_RF95::isr1()"
from "void RH_RF95::isr2()" to "void ICACHE_RAM_ATTR RH_RF95::isr2()"

I understand that this is an issue for both the ESP8266 and the ESP32 (although I have not tested the ESP32).

I hope this info will be of use!

@PaulStoffregen
Copy link
Owner

This is the copy of RadioHead for Teensy.

Do not use it with ESP chips.

@Rob58329
Copy link
Author

Rob58329 commented Jul 8, 2019

@PaulStoffregen: >This is the copy of RadioHead for Teensy

My mistake - I though I was using your library, but I'm actually using "www.airspayce.com/mikem/arduino/RadioHead".

Many thanks for clarifying!

@Rob58329 Rob58329 closed this as completed Jul 8, 2019
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

2 participants