I'm having this exact same problem, except i get the exception whether or not I am delaying the code or not.
I;ve searched everywhere and can't seem to figure out how to solve this problem.
Here is my stack trace:
Code: Select allSoft WDT reset
>>>stack>>>
ctx: cont
sp: 3ffffde0 end: 3fffffc0 offset: 01a0
3fffff80: 3fffdad0 00000392 3ffee368 4020142b
3fffff90: 3fffdad0 3ffee3b0 3ffee368 40201084
3fffffa0: feefeffe 00000000 3ffee3d8 40201e00
3fffffb0: feefeffe feefeffe 3ffe84e4 40100bf9
<<<stack<<<
Which equates to this:
Code: Select allDecoding stack results
0x4020142b: Stepper::step(int) at /Arduino/libraries/Stepper/src/Stepper.cpp line 198
0x40201084: loop() at /Arduino/sketch_oct14a/sketch_oct14a.ino line 21
0x40201e00: loop_wrapper() at /Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 197