PaulStoffregen / RadioHead

Version of RadioHead library for Teensy boards
http://www.airspayce.com/mikem/arduino/RadioHead/
Other
255 stars 156 forks source link

RH95 driver not interrupt safe on ESP8266 #9

Closed jcmg92 closed 9 months ago

jcmg92 commented 7 years ago

I am playing around with SX1296 modules connected to ESP8266's and found out that the interrupt handlers called within the various layers of drivers (RH95, various SPI layers, ...) are not ESP8266 interrupt safe (they do not have the ICACHE_RAM_ATTR).

I also had to modify Arduino's ESP8266 core SPI library as I also found this one "not interrupt safe".

For now, I have made my own mods and seem to now have a stable ESP8266 implementation (scope to RH95 for now).

Am I the only one to have met those issues?

If any interrest, I am happy to share the mods even if they are limited to RH95 support.

aimanhakimzahari commented 3 years ago

Hi jcmg92, I also faced the same problem. Do you mind if you share your modifications with me? Here is my email aimanzahar1998@gmail.com. Thank you!

CarloRoma63 commented 9 months ago

Same problem. Solved editing radiohead.h at line 1684 replacing ICACHE_RAM_ATTR with IRAM_ATTR

PaulStoffregen commented 9 months ago

This repository is a copy meant for Teensy. This is absolutely the wrong place to discuss problems specific to Espressif chips.

I'm not denying a problem exists. I'm only saying this is the wrong place to discuss, as nothing will come of anything said here.