-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
Crash: ISR not in IRAM when #254
Comments
Which release of the Arduino ESP8266 core are you using? I think in the latest core releases all the ISR's must use ICACHE_RAM_ATTR so we probably need to update this LoRa library for that. |
Hey, thanks so much for the lightning fast reply @torntrousers! ⚡ Changing that line to this does indeed fix the issue: ICACHE_RAM_ATTR void LoRaClass::onDio0Rise() However, this change causes compilation to fail for the Arduino Uno (I also have 2 of these - 1 with a Dragino LoRa Shield that I'm borring from University until ~August, and another which has an RFM95 connected via level shifter). Looking in the boards manager reveals that I'm using v2.5.2 of the esp8266 package, if that's the one you're talking about? |
There is a issue about this, I think its a release from 2.5.1 - esp8266/Arduino#6127 I guess that should be surrounded by a conditional, something like - |
I feel like adding more conditionals is a bad idea. The code base has been having an increasing number of these recently, and I believe they're starting to cause problems. These will be address in a future issue. So instead of a conditional block around the function declaration, I feel like a macro prefix, with a board specific conditional define elsewhere is a better idea. Something like....
Then the function declaration would look like
And FWIW, this probably isn't the best C++ solution |
Try this and see if it fixes it? https://github.com/sandeepmistry/arduino-LoRa/pull/257/files |
It sure does, @torntrousers 😺 |
Good point, worked for me with RFM69 library. But please have a look at the comment I left about it at: esp8266/Arduino#6127 |
Fix Crash: ISR not in IRAM when #254
Should this be closed? Or should it wait until the next release |
0.6.0 has been release. Give it a go and reopen if you have further issues. |
When I try to use continuous receive mode with a Wemos D1 R2, I get the following crash:
Here's a link to the sketch I'm using: https://privatebin.net/?f92cda1dbecb73ee#J6+bp9JBfSdUhJ5S7X/u1YsOrPxE4rQddfJgH736wpg=
The text was updated successfully, but these errors were encountered: