avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] atmega128 funny problem


From: Torsten Hahn
Subject: Re: [avr-gcc-list] atmega128 funny problem
Date: Sun, 6 Oct 2002 15:11:10 +0200
User-agent: KMail/1.4.2

Am Samstag, 5. Oktober 2002 19:42 schrieb Hallvard Kvedalen:
> Hi,
>
> I have just started with some small code on the mega128. Unfortunately I
> run into some funny problem.
> The main function looks like this:

I had a similar problem. The reason was, that the atmega128's watchdog timer 
was always enabled. You have to programm the fuse bits in a way, that 
watchdog reset is disabled by default or dissable the watchdog reset "by 
hand". You can use a macro from the avr-libc defined in wdt.h for this. Just 
call 

wdt_disable()

as first thing in your main, and things should be nice.

cu,
Torsten.
-- 
Torsten Hahn / Chemnitzer Str. 4 / 09599 Freiberg / Germany
mail: address@hidden
pgp-key: http://www.physik.tu-freiberg.de/~hahn/pgpPublicKey.txt

avr-gcc-list at http://avr1.org



reply via email to

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