[En-Nut-Discussion] SAM7X Watchdog

Albert Andras alandras at linetron.ro
Mon Jul 17 22:59:50 CEST 2006


Hi,

Not only the "watchdog disable" but the NUT_WDT_FREQ should be set in the 
startup!
No platform independent watchdog support! (: Only NutWatchDogRestart();
I thing anything that change the reset value should be configured, maybe 
just WDDBGHLT and WDIDLEHLT can be left in 1.

Andras


----- Original Message ----- 
From: "Harald Kipp" <harald.kipp at egnite.de>
To: <en-nut-discussion at egnite.de>
Sent: Monday, July 17, 2006 8:32 PM
Subject: [En-Nut-Discussion] SAM7X Watchdog


> Hi,
>
> Anyone able to explain this part of arch/arm/os/nutinit.c to me?
>
> #ifdef MCU_AT91SAM7X256
>         /*
>          * We have only one chance to disable the WDT by writing WDT_MR. 
> This
>          * may cause trouble when debug in RAM.  If code burned in flash 
> enabled
>          * WDT, we have no idea to disable but clear it.
>          */
>         outr(WDT_WDCR, 0xA5000000 | WDT_WDRSTT);
> #endif
>
> After adding
>
>         /*
>          * The watchdog is enabled after processor reset. Disable it.
>          */
>         ldr     r1, =WDT_BASE
>         ldr     r0, =WDT_WDDIS
>         str     r0, [r1, #WDT_MR_OFF]
>
> to crtat91sam7x256_rom.S, the triggering in the idle thread shown
> above can be removed, right?
>
> If I understood everything correctly, the watchdog disable
> must be configurable, because WDT_MR can be written once only.
>
> Did I overlook something?
>
> Harald
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
> !DSPAM:44bbc8a2282121607798396!
>
> 




More information about the En-Nut-Discussion mailing list