Hi,
I need to implement watchdog for my application. With reference to datasheet/ref manual of Kinetis MK60FN1M0VLQ12, I understand that WDOG can be used for the same. The objective is to load a timer in case of any stuck or error due to some indefinite call of loop (mainly while) or any other segmentation faults, the timer configurable of any say 25 - 35 secs (maximum time take for a task) after that it shall try to clear or exit out of that or reset the entire system. The sw/application uses indefinite while loop and no OS. Can anyone suggest me how to proceed with implementation specific for Kinetis MK60FN1M0VLQ12.
Regards,
Rajkumar
Hi Alexis,
Thank you very much for the info.
It really helped me.
-Gangadhar
Dear Gangadhar,
I will suggest to check the examples that came in the following example to check how to use the WDOG, you can found them under Code Snippets:
Arm® Cortex®-M4|Kinetis K60 100 MHz 32-bit Microcontrollers|NXP | NXP
Also this thread has an example driver that could be useful to set the module.
Regarding the implementation, you could put the refresh function in a timer interruption (LPTMR for example).
Let me know if this helps you.
Best Regards,
Alexis Andalon