How to implement watchdog timer in Kinetis MK60FN1M0VLQ12 ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to implement watchdog timer in Kinetis MK60FN1M0VLQ12 ?

1,068 Views
rajkumar_yerraj
Contributor II

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

Labels (1)
0 Kudos
2 Replies

846 Views
rajkumar_yerraj
Contributor II

Hi Alexis,

Thank you very much for the info.

It really helped me.

-Gangadhar

0 Kudos

846 Views
Alexis_A
NXP TechSupport
NXP TechSupport

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.

K60 Watchdog Refresh Issue 

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

0 Kudos