Description
Arduino/cores/esp8266/core_esp8266_waveform.c
Line 205 in 2eb5b56
I had a problem with custom servo implementation. I am using hardware serial to parallel port extension. Needed to change servo implementation to send serial code for each servo pulse.
Code crashed in case eps is connecting to a wifi at the time when servo is active. If servo is activated after the connection, it works. If it is activated before the wifi connection (my device works with and without connection), it crashes (attached stac traces).
While debugging, I found, that the new ESP core (2.4.2) calls stopWaveForm in each call to a _digitalWrite. This new implementation (comparing to the pwm-one, the old one,
), does not have method marked with ICACHE_RAM_ATTR. Adding this section definition to a method fixed the crash for me.Suggest to evaluate this change to be included in the esp core.