MCU Watchdog Timer

Configuring cocoOS

MCU Watchdog Timer

Postby whywhy » Tue Jan 08, 2013 8:28 am

Hi,

I want to used MCU Watch Timer.
Where is the best place to clear the timer?

Thanks.
whywhy
 
Posts: 6
Joined: Sun Dec 16, 2012 3:50 pm

Re: MCU Watchdog Timer

Postby peter » Tue Jan 08, 2013 9:22 pm

Hi,
not so crucial where you kick the dog. Don't do it in a time interrupt, since even if your code hangs, the interrupt could still be working and would keep on kicking the dog.

I would put it in a separate self testing task, that performs some system checks and if everything is alright, kicks the dog.

/Peter
peter
Site Admin
 
Posts: 24
Joined: Wed Mar 07, 2012 9:32 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron