Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: does watchdog work ?

2004-09-15 by markcrow

A side note to all those working on the LPC22xx chips and using 
external memory:  When the watchdog times out it will try to access 
vector memory at relative 0x00000000 using the memory attached to CS0 
(instead of address 0 of the internal flash memory).


--- In lpc2000@yahoogroups.com, "cd_racer2" <cd_racer@m...> wrote:
> Initialization:
> 
>    /* Setting watchdog work mode */
>    WDMOD |= WDMOD_WDEN;
>    WDMOD |= WDMOD_WDRESET;
>      /* Dropping watchdog timeout flag */
>    WDMOD &= ~WDMOD_WDTOF;
>      /* Setting watchdog timeout */
>    WDTC = WatchdogTimeout;
> 
>    WDFEED = 0xAA;
>    WDFEED = 0x55;
> 
> -----------------------------------------------
> Reset each cycle:
> 
>    WDTC &= ~WDMOD_WDTOF;
>      /* Feeding 0xAA, 0x55 to restart watchdog */
>    WDFEED = WDFEED_WDFEED(0xAA);
>    WDFEED = WDFEED_WDFEED(0x55);
> 
>    This code is from our Watchdog driver. We've successfully test 
it.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.