PlatformIO Community

How to fix "ISR not in IRAM"

Foolishly i just did upgrade and i’m already having some issues with this when i try to upload one big project. I get this error “ISR not in IRAM” and the ESP8266 starts rebooting.

  1. Is there a way to revert the platform on the version before to avoid this issue?

I tried something like this but it didn’t help
https://github.com/platformio/platform-espressif8266.git@2.0.4

  1. Is there any bugfix for this?

thnx guys

Just platform = espressif8266@2.0.4 in your platformio.ini

Add ICACHE_RAM_ATTR as seen in https://forum.arduino.cc/index.php?topic=616264.0 from 2 months ago.

1 Like

For reference, it’s also mentioned in the v2.5.1 notes… although it is obscure…

  • ISR code must be in ICACHE_RAM (#6002)
  • ISR: check for address in IRAM (#5995)