I am having certain "defective" ICs with me which are unable to handle a clock speed of 16MHz. The code stops running after a while and I am unable to pause the program in the debugger giving me the error message
I thus want to reset the code when it stops running. Given that my code is already within a while(1), how do I use the watchdog timer to accomplish this? Is something on these lines possible - setting/resetting a variable/register as the first instruction in the while loop failing which the code should get reset?
When the code stops running, the code seems to be still entering the ISR. So, if I can reset the code from within the ISR, it might well serve my cause.
Thanks and Regards