| Author |
Message |
|
|
Posted: Jan 11, 2009 - 03:23 PM |
|

Joined: Nov 29, 2007
Posts: 134
|
|
Using an ATmega640. It worked fine.
Enabled WDT using latest version of AVR Studio b623 using Fuses tab.
My ATmega640 would then reset crazy fast. As expected.
Now I go back to Fuses and remove the check to WDT.
My ATmega640 still resets crazy fast. Despite AVR Studio claiming its off, it won't actually turn WDT off!
(power supply is fine)
Anyone seen this problem or know what I'm doing wrong? |
_________________ How do YOU make a robot?
http://www.societyofrobots.com
|
| |
|
|
|
|
|
Posted: Jan 11, 2009 - 04:19 PM |
|


Joined: Mar 27, 2002
Posts: 18540
Location: Lund, Sweden
|
|
|
Quote:
Now I go back to Fuses and remove the check to WDT.
And you did actually click the Program button after that? |
|
|
| |
|
|
|
|
|
Posted: Jan 11, 2009 - 04:52 PM |
|

Joined: Nov 29, 2007
Posts: 134
|
|
Thanks for your confidence in me
Yeap I clicked the program button. Many times.  |
_________________ How do YOU make a robot?
http://www.societyofrobots.com
|
| |
|
|
|
|
|
Posted: Jan 11, 2009 - 06:43 PM |
|


Joined: Jun 22, 2004
Posts: 3849
Location: South West Utah, USA
|
|
Can you correctly read the AVR signature? If not, the indication of the WDTON fuse state might be wrong.
Did you also erase the chip to remove any program code that might be misbehaving?
Can you high voltage parallel program your AVR to positively clear the WDTON fuse, even if the AVR clock fuses are messed up, etc.? |
|
|
| |
|
|
|
|
|
Posted: Jan 11, 2009 - 08:52 PM |
|

Joined: Jan 10, 2007
Posts: 816
Location: Toronto, Ontario, Canada
|
|
Try to verify that you are actually changing your program on the device. Lengthen the WDT time out and see if the changes the period. Have you changed any other flags?
A |
_________________ AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA
Last edited by andrew99 on Jan 12, 2009 - 12:01 PM; edited 1 time in total
|
| |
|
|
|
|
|
Posted: Jan 12, 2009 - 12:02 AM |
|


Joined: Mar 27, 2002
Posts: 18540
Location: Lund, Sweden
|
|
|
|
|
|
|
Posted: Jan 12, 2009 - 01:10 AM |
|


Joined: Oct 03, 2001
Posts: 246
Location: NYC, USA
|
|
Not sure about this one, but also be sure to power cycle the target (if you have not already). Seem to remember having a similar experience with a mega48. Backup batteries/supercaps can confuse the issue.
-carl |
|
|
| |
|
|
|
|
|