Hi Martin,
please refer watchdog sample code attached, you can also find this sample under CW6.3 install folder.
Hope this helps!
=========================================
this answer is for you, if it helps, please click on "correct answer" button. thanks!
Best Regards,
ZhangJun