Hi Matthius,

Thanks for your help again,

>Close, but still missing the point. You'll
>need to *regularly* clear the watchdog reset
>condition (depends on your settings every
>) with the WDR instruction. A forth word wi
>few milliseconds to at most 2 seconds IIR
>Cth that name is provided via core/words/wdr.asm,
>just include it and call it often, e.g...
But this isn't the problem. I have core/words/wdr.asm included and I can keep 
the watchdog reset at bay by regularly calling wdr. The problem comes when I 
simulate my application hanging - i.e when wdr doesn't get called. Obviously to 
be a useful watchdog, what needs to happen is that the device resets and starts 
running the application from the start again, but what's happening instead is 
that it just goes into an endless loop, rebooting before it's finished its 
'amforth' startup message. My watchdog timeout is 8 seconds - much longer than 
this. Hence I'm wondering if the watchdog condition has to be cleared manually 
on reset.
Many thanks,

David Wallis

On 31 Oct 2013, at 12:25, David Wallis <inshallah...@gmail.com> wrote:

> Hi All,
> 
> I'm trying to use the watchdog on an ATMega644P chip. I have the problem that 
> if the watchdog actually triggers it just keeps resetting, repeatedly writing 
> out the 'amforth 5.1' message. My guess is that the watchdog interrupt 
> condition needs clearing at startup. Could this be right? Has anyone used the 
> watchdog and have a solution? Altering the startup code is delving into a 
> deeper level of amforth than I have done before.
> 
> Many thanks,
> 
> David
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to