Re: [avr-gcc-list] Spurious restarts on atmega128l

2007-07-13 Thread edSteve
On Friday 13 July 2007 13:03:57 Juergen Harms wrote: > I would also check for a watchdog reset (your 12 msec are close to the > 15 msec period for the shortest watchdog reset) - try to disable the > watchdog timer at the start of your program, see page of the > avr-libc-user-manual. But I do not u

Re: [avr-gcc-list] Spurious restarts on atmega128l

2007-07-13 Thread edSteve
On Friday 13 July 2007 13:03:57 Juergen Harms wrote: > I would also check for a watchdog reset (your 12 msec are close to the > 15 msec period for the shortest watchdog reset) - try to disable the > watchdog timer at the start of your program, see page of the > avr-libc-user-manual. But I do not u

Re: [avr-gcc-list] Spurious restarts on atmega128l

2007-07-13 Thread Juergen Harms
I would also check for a watchdog reset (your 12 msec are close to the 15 msec period for the shortest watchdog reset) - try to disable the watchdog timer at the start of your program, see page of the avr-libc-user-manual. But I do not understand why there is a reset but no significant info in

Re: [avr-gcc-list] Spurious restarts on atmega128l

2007-07-13 Thread David VanHorn
Although PORF should show something different, I would suspect glitches in power or on the reset line.. The AVR is very sensitive to even the shortest blips on reset. The other thing to check, would be your clock. CKOPT fuse defaulted with external crystal or resonator is a BAD idea.

Re: [avr-gcc-list] Spurious restarts on atmega128l

2007-07-13 Thread edSteve
On Friday 13 July 2007 11:07:18 edSteve wrote: > I've encountered a problem that I do not understand. Perhaps someone can > help me out. I neglected to mention that interrupts are disabled. Steve -- - Steve Isaacs Embedded Domain ___ AVR-GC

[avr-gcc-list] Spurious restarts on atmega128l

2007-07-13 Thread edSteve
I've encountered a problem that I do not understand. Perhaps someone can help me out. The problem is the atmega128l is restarting. I've created code that hangs in a loop and the restart still occurs. The reset status register (MCUCSR) offers no clue. If I write a null to the register it remains