<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Everyone,<br>
<br>
the remaining crashes I have seen in quite a while were all due to
the task watchdog triggering. I have now added capturing the names
of the tasks that failed feeding the dog and capturing the event
that was processed at the time of the crash/wdt to the RTC boot
data.<br>
<br>
If set, it's shown by the "boot" command and transmitted to a v2
server via the "*-OVM-DebugCrash" records.<br>
<br>
Example:<br>
<br>
<tt>OVMS# boot status </tt><tt><br>
</tt><tt>Last boot was 10 second(s) ago</tt><tt><br>
</tt><tt>Time at boot: 2020-07-18 11:53:07 CEST</tt><tt><br>
</tt><tt> This is reset #1 since last power cycle</tt><tt><br>
</tt><tt> Detected boot reason: Crash (12/12)</tt><tt><br>
</tt><tt> Reset reason: <b>Task watchdog</b> (6)</tt><tt><br>
</tt><tt> Crash counters: 1 total, 0 early</tt><tt><br>
</tt><tt><br>
</tt><tt>Last crash: abort() was called on core 0</tt><tt><br>
</tt><tt> Backtrace:</tt><tt><br>
</tt><tt> 0x4008e627 0x4008e8c1 0x400e6100 0x40083f6a</tt><tt><br>
</tt><b><tt> Event: ticker.1@module 64 secs</tt></b><b><tt><br>
</tt></b><b><tt> WDT tasks: OVMS Events</tt></b><tt><br>
</tt><tt> Version: 3.2.013-303-gfc79b92f/factory/edge (build idf
v3.3.2-879-g0137aef47 Jul 18 2020 11:29:45)</tt><br>
<br>
This was a test trigger by "module trigger twdt".<br>
<br>
DebugCrash record structure is now:<br>
<tt> // H type "*-OVM-DebugCrash"</tt><tt><br>
</tt><tt> // ,<firmware_version></tt><tt><br>
</tt><tt> //
,<bootcount>,<bootreason_name>,<bootreason_cpu0>,<bootreason_cpu1></tt><tt><br>
</tt><tt> //
,<crashcnt>,<earlycrashcnt>,<crashtype>,<crashcore>,<registers>,<backtrace></tt><tt><br>
</tt><tt> // ,<resetreason>,<resetreason_name></tt><tt><br>
</tt><tt> //
,<curr_event_name>,<curr_event_handler>,<curr_event_runtime></tt><tt><br>
</tt><tt> // ,<wdt_tasknames></tt><tt><br>
</tt><br>
<br>
Regards,<br>
Michael<br>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>