-->
Page 1 of 1

[Non-OS] Watchdog kick in

PostPosted: Mon Jul 29, 2019 3:26 pm
by sedlacek.david
Hi, is it possible to detect the last known dead loop, before the watchdog kicks in?

I'm running NON-OS native espressif SDK.

The problem is that I'm doing something fundamentally wrong and at some point, right after power cycle, my program stucks in an endless loop. It is quite complex code and I'm starting to have a suspicion that it is related to "bacground" SDK stuff. And it drives me crazy before I just cant manage to find the weak point.

Thank you!!!

Re: [Non-OS] Watchdog kick in

PostPosted: Tue Jul 30, 2019 4:33 am
by quackmore
I'd stand for good ol' os_printf !!

That's always a good starting point for tracing your code

unfortunately you'll have to code it yourself,
but on this same forum I found at least a couple of threads you may wanna have a look for inspiration:

TRACING, REPORTING, ANALYSIS & PROFILING TOOL (TRAP)

STACK TRACE AND ESP8266 NONOS

Re: [Non-OS] Watchdog kick in

PostPosted: Sat Aug 17, 2019 7:08 am
by sedlacek.david
Thank you, unfortunatelly I'm not using Arduino at all. I'm have a cmake setup with NON-OS sdk.

Re: [Non-OS] Watchdog kick in

PostPosted: Sun Aug 18, 2019 2:18 pm
by sedlacek.david
A lot of things have happened - I'm now able to debug my CMAKE&NON-OS SDK project in ECLIPSE and gdbstub.

But the only thing which is quite annoying is a hardware watchdog. It kicks in during code stepping.

Any ideas how to disable it or get rid of it somehow? Put wdt feed into an interrupt?