PaulStoffregen / RadioHead

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

Fix for use of ISRs with the RF69 driver on the ESP8266 #27

Closed wvmarle closed 5 years ago

wvmarle commented 5 years ago

Fix for use of ISRs with the RF69 driver on the ESP8266 (note: the same change will have to be implemented for all other boards using interrupts).

Since ESP core 2.5.1 the interrupt handling has changed a bit: it is now enforced that ISRs are kept in IRAM rather than on Flash. This is something that should have been done this way all along, keeping the ISR on Flash can cause seemingly random crashes.

This is done by adding the ICACHE_FLASH_ATTR flag to the function in question. Here done, using #ifdef clauses as it is only for this specific processor.

wvmarle commented 5 years ago

Further testing showed this is not a complete fix :-(