|
From: | Bernard Fouché |
Subject: | Re: [avr-gcc-list] jump_to_null question |
Date: | Thu, 24 May 2007 16:40:00 +0200 |
User-agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
Eric Weddington wrote:
2. The best way to reset the AVR, is not by jumping to the reset vector.In this case his bootloader will start again. I don't see how you can avoid jumping to 0x0 when a bootloader ends its work.When you do that, some of the registers may be left in a state that is not the default. The best way to reset is to enable the watchdog timer on the shortest time-out, go into an infinite loop, and let the watchdog reset the AVR. Depending on which AVR you are using, you will have to turn off the watchdog timer after reset, with code in the .init3 section, for example.
Bernard
[Prev in Thread] | Current Thread | [Next in Thread] |