Hi guys, I am working on an algorithm to run on esp8266 but encounter the following problem:
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v00046e70
~ld
I understand that it is a problem related to a hardware wdt but I do not know how to identify where the problem occurs.
Using occasional serial printing (although it should not be done in such cases) I realized that the reset is triggered in this part of the code:
//Serial.println("Start karatsuba");
karatsuba_simple(aw1, bw1, w1);
karatsuba_simple(aw2, bw2, w2);
karatsuba_simple(aw3, bw3, w3);
karatsuba_simple(aw4, bw4, w4);
karatsuba_simple(aw5, bw5, w5);
karatsuba_simple(aw6, bw6, w6);
karatsuba_simple(aw7, bw7, w7);
karatsuba_simple(aw7, bw7, w7);
//Serial.println("End karatsuba");
The result is:
Start karatsuba
End karatsuba
Start karatsuba
End karatsuba
Start karatsuba
//wtd reset in this point
Here is my karatsuba function: karatsuba - Pastebin.com
Do you know of a working debuger for esp8266 or some other technique that might be useful to me in handling wdt?
Does esp32 have the same system or are wdt’s “softer”?
Thank you all for your attention.