I'm trying to reset my processor by using an watchdog. On overflow, it activates the internal reset. That worked fine until I realized that when the processor halts, the internal reset is useless.
I saw that the watchdog overflow activates an external pin, NWDOVF, that can be connected through the PIO controller to the NRST (PB26) reset pin.
The problem is I don't really know how to do this connection. The documentation is kind of scarce on the subject. Has anyone encountered this issue?
Thanks.
That worked fine until I realized that when the processor halts, the internal reset is useless
Are you trying to reset you processor while it is halted? Like after hitting a break point?
Sorry for the wrong use of the word halted. I meant blocked, like in a while(1); loop.
Why wouldn't the internal watchdog work if your program is locked in an infinite loop? That is exactly one of the cases where you do want to use the watchdog.