Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By zsocy
#21588 Hi,

A write short code:

a=1; while 1 do a = a + 1 ; tmr.delay(100000) end

Run about 4-5 sec, and after occure reset.

Why?
User avatar
By zsocy
#21604 Hi tytower,

You are right! Thanks. The watchdog timeout occured.

I wrote 2 test:

while 1 do print('a') end -- test 1 - RESTART about 3-4 sec

while 1 do print('a') ; tmr.wdclr() end -- test 2 - NO RESTART

I do not understand yet. So far, there was no such error.
User avatar
By kolban
#22435 I notice that in 1.2.x there are a couple of new functions called:
Code: Select allsystem_soft_wdt_stop()
system_soft_wdt_restart()

These may be able to suspend and resume the timers.