Found this on the Axis hw referens documetation, think this is what 
you need:

http://www.axis.com/files/tech_overview/etrax_100lx_des_ref-
060209.pdf (see section 15.7)

15.7 Watchdog Timer
When the watchdog timer is started, it generates an NMI if the 
watchdog is not restarted or stopped within 0.1 s. If it still is 
not restarted or stopped after an additional 3.3 ms, the watchdog 
timer resets the chip. The watchdog timer is stopped after reset. 
The watchdog timer is controlled by the register R_WATCHDOG.

However I'm quiet new at C why I can't help you with the coding 
piece, I'm myself interested in the solution why I also would like 
to know how to add this to a small deamon appl.

In my case I would like to restart the watchdog each lap of the 
application to avoid reset, on software crash or endless loop the 
timer will expire and reset occur, during init after reset the timer 
will be re-activated.

If this is the same as panic=1 how do I do that in C ?



--- In [email protected], [EMAIL PROTECTED] wrote:
>
> adding panic=1 to the kernel command line will make the board 
reboot  
> after it has done an oops
> 
> Quoting mc83000 <[EMAIL PROTECTED]>:
> 
> > Hi,
> >
> > Can you give me more information (URL, source code) ?
> >
> > Thanks for your help
> >
> > Raph
> >
> > --- In [email protected], "ulf.samuelsson" 
<ulf.samuelsson@>
> > wrote:
> >>
> >> Why not put in a watchdog timer that you trigger from the 
application
> >> to clear the timer, if not cleared before expire it will hard 
reset
> >> the processor.
> >>
> >> look at DS1232 as a example of how it can be done.
> >>
> >> //Ulf
> >>
> >> --- In [email protected], "mc83000" <mc83000@> wrote:
> >> >
> >> > Hi,
> >> >
> >> > I need to restart electrically my foxboard, when it crash or 
every
> >> day
> >> >
> >> > Have you a solution for me ?
> >> >
> >> > Thanks
> >> >
> >> > Raph
> >> >
> >>
> >
> >
> >
>


Reply via email to