How to fix "ISR not in IRAM"

Just platform = espressif8266@2.0.4 in your platformio.ini

Add ICACHE_RAM_ATTR as seen in Using interrupts with a Node MCU - Programming Questions - Arduino Forum from 2 months ago.

1 Like