Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Matys
#61156 Hello There,
Im trying to get OTA working while there are interrupts implemented but im always getting WTD reset due to HW_timer

Here is my code:
https://github.com/v1ckdesigns/ESP_Dimm ... rature.ino

NoInterrupts(); and detachInterrupt() and hw_timer_set_func(0); does not seems to make any difference inside ArduinoOTA.onStart()

everything works fine if interrupts are commented out..

Regards
Matys
User avatar
By Daemach
#61191 As odd as it sounds, after doing a serial upload make sure you reboot the board before attempting an OTA update. If the board is not physically rebooted, it will crash when OTA attempts to run.
User avatar
By Matys
#61201 Yeah, im aware of that, im always doing power cycle after serial flash.
I found a workaround by adding a statement to turn off interrupts while both lights are off and handle OTA then, but still it makes me wonder why it does not work inside Arduino.onStart().