<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I did look at JTAG, but it would have meant a few changes:<div class=""><br class=""></div><div class=""><ol class="MailOutline"><li class="">Needs some GPIOs that we don’t have spare</li><li class="">Needs to change to FTDI dual async chip</li></ol><div><br class=""></div><div>Overall, just too risky to add at the late stage, so we didn’t attempt it.</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""><blockquote type="cite" class=""><div class="">On 27 Mar 2018, at 3:26 AM, Stephen Casner <<a href="mailto:casner@acm.org" class="">casner@acm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I have not dug deeply, but all the references I have seen to using gdb<br class="">for debugging on the ESP32 require extra JTAG hardware. The<br class="">ESP-WROVER-KIT includes the FTDI FT2232HL USB bridge that allows a<br class="">JTAG connection over USB in addition to the UART connection. I don't<br class="">know if it would have been feasible to include that debugging function<br class="">into the OVMS v3 hardware design.<br class=""><br class=""> -- Steve<br class=""><br class="">On Mon, 26 Mar 2018, Mark Webb-Johnson wrote:<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Would moar printfs to pin down where it dies help?<br class=""></blockquote><br class=""><br class="">I added a log output to ppp just after closing the connection, to see if we come back from the call to shutdown the ppp link.<br class=""><br class=""><blockquote type="cite" class="">Is it possible to break into the system with gdb over the serial port and do a "thread apply all bt" or similar to get the state of all the threads? Or place a breakpoints in the right places and resume the system?<br class=""></blockquote><br class=""><br class="">I haven't managed to get gdb to recognise freertos tasks. I've seen references to doing this over JTAG, but not via gdbstub. Anybody else have any luck with this?<br class=""><br class="">Regards, Mark.<br class=""><br class=""><blockquote type="cite" class="">On 25 Mar 2018, at 6:10 PM, Tom Parker <<a href="mailto:tom@carrott.org" class="">tom@carrott.org</a>> wrote:<br class=""><br class="">On 25/03/18 22:58, Mark Webb-Johnson wrote:<br class=""><blockquote type="cite" class="">I think that the housekeeping task is locked up. With the latest code I have, the per-10-minute housekeeping message has stopped.<br class=""></blockquote><br class="">It certainly has -- Housekeeping::Ticker1 increments monotonic and that isn't working. I had a look at the simcom power code and there is a vTaskDelay(1000 / portTICK_PERIOD_MS) in simcom::PowerCycle() but I'm not clear whether that is called when you power off the modem.<br class=""><br class=""><blockquote type="cite" class="">My guess is still the ppp code, during session teardown.<br class=""></blockquote><br class="">Would moar printfs to pin down where it dies help? I see the watchdog changes you've added, I'm not running them yet. I'll do that tomorrow.<br class=""><br class=""><blockquote type="cite" class="">I sent a detailed message on this an hour or so, with my analysis of this.<br class=""></blockquote><br class="">Read that, tried a few things from it.<br class=""><br class="">Is it possible to break into the system with gdb over the serial port and do a "thread apply all bt" or similar to get the state of all the threads? Or place a breakpoints in the right places and resume the system?<br class="">_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></blockquote><br class="">_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""><br class=""><br class=""></blockquote>_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></div></blockquote></div><br class=""></div></body></html>