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.
Message
Re: does watchdog work ?
2004-09-15 by markcrow
Attachments
- No local attachments were found for this message.