[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] wdt_disable on m2561
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] wdt_disable on m2561 |
Date: |
Wed, 13 Dec 2006 08:19:46 +0100 |
User-agent: |
Mutt/1.5.11 |
As Steve Franks wrote:
> Anyone used the watchdog on a m2561 yet?
At least on an ATmega1281, but that's about the same in that respect.
Likewise for all other new AVRs.
> We changed a board from a 128 to a 2561, and now, as soon as the
> watchdog gets hit once, infinite resets.
Mind the introductional comments for <avr/wdt.h>. You have to care
for a very specific sequence of actions, which includes clearing the
WDRF flag. (I've been bitten by that as well when we changed from
the ATmega128 to the ATmega1281.)
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)