esp8266 tips ISR not in IRAM! to solve prepend ICACHE_RAM_ATTR to the isr function: void ICACHE_RAM_ATTR ISR_my() { // }