Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

RE: [AVR-Chat] AVR 90USB1287 software reset

RE: [AVR-Chat] AVR 90USB1287 software reset

2007-07-16 by Tim Mitchell

Clark, Andy wrote:
> Are you sure you're using the correct cpu include file/vector table ?
> 
> Andy

Yes.. It's actually part of an Atmel demo app which does the USB part.

I'm now digging further into it - it appears to be running my software
for approx 25msec then restarting, in an endless loop. The first
instructions turn off the watchdog so I don't think it is that.
Interrupts have not been enabled at this point. It is definitely
time-related, I can shift blocks of code around and they run OK until
the time elapses and it resets.

Interestingly a hardware reset does not get it out of this state, only a
power off reset.


> 
> ________________________________
> 
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On
> Behalf Of Tim Mitchell 
> Sent: 16 July 2007 14:40
> To: AVR-Chat@yahoogroups.com
> Subject: [AVR-Chat] AVR 90USB1287 software reset
> 
> 
> 
> I'm trying to do a software restart on an AVR90USB1287. (basically a
> mega128 with USB).
> 
> I am disabling interrupts, turning on the watchdog timer and going
> into an endless loop. When the watchdog times out, it resets, but
> does not run my software (I am not sure what it is doing, or how to
> tell). The hardware boot flag is disabled and bootrst is disabled so
> it should not be jumping to the bootloader.    
> 
> It starts up fine into the software on power up.
> 
> Anyone got any advice on what it might be doing?



-- 
Tim Mitchell
tim@sabretechnology.co.uk http://www.sabretechnology.co.uk
Sabre Technology (Hull) Ltd, 3a Newlands Science Park, Hull HU6 7TQ
Registered in England and Wales no.3131504
t:01482 801003 f:01482 801078

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.