TIP: How to JTAG break on watchdog timeout

jsam589
Posts: 74
Joined: Sat Aug 17, 2019 9:31 pm

TIP: How to JTAG break on watchdog timeout

Postby jsam589 » Tue Oct 19, 2021 12:27 am

I have just started using JTAG in Eclipse with the hope to diagnose an interrupt WDT that just started occurring after some recent changes to stable code. I want to let my system run in Debug mode until the problem occurs and I can see where the problem came from when it breaks due to WDT.

Although it says in online documentation that interrupt and task watchdogs get disabled when using JTAG/OpenOCD, this is only partly true.

If you enter debug mode without any initial breakpoint set, the watchdogs work until the first break, at which time they are then disabled and not re-enabled. For my purpose, this is fine, as I can now get visibility into what causes the WDT.

FYI, I am using IDF 4.0.

Who is online

Users browsing this forum: dzungpv and 105 guests