avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Re: mega644 resetting continuously


From: Steve Franks
Subject: Re: [avr-chat] Re: mega644 resetting continuously
Date: Mon, 29 Jan 2007 12:53:38 -0700

On 1/29/07, Eric Weddington <address@hidden> wrote:


> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
>  On Behalf Of Steve Franks
> Sent: Monday, January 29, 2007 9:15 AM
> To: Daine Mamacos
> Cc: address@hidden
> Subject: [avr-chat] Re: mega644 resetting continuously

> I don't have the problem at all on the new 4.1.1 compiler, probably
> just because it optimizes better - but if you're on windows, you'll
> have to wait until the next winavr release.
>

Which has been released, btw.

Eric



Oh, sorry.  4.1.1 is out.  And boy, does it optimize - same stuff was
135k on 3.4.5, now is 120k.  Yes, not a typo.  I'm in charge of a
leviathan.

But back to the watchdog.  I think the key(s) are the MCUCSR = 0 and
wdt_reset() before wdt_disable() on the newer devices.  I don't know
if the Mega8 is "new" or "old" in terms of wdt, but you might
double-check.

The __attribute__ init3 inserts the wdt disabling code in your
startup, so no, you don't have to call it explicitly (as long as you
have no typos in there - I don't know if an invalid attribute will
cause a warning or not, I suspect not).  You can always see if it's in
the listing.

Steve

--
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089




reply via email to

[Prev in Thread] Current Thread [Next in Thread]