It can be argued, quite strongly, actually, that an endless loop is the ONLY error that the WDT handles. Nothing else "triggers" the WDT. Jim Wagner Oregon Research Electronics On Jan 12, 2013, at 7:35 AM, englsprogeny1 wrote: > Using an AtMega16, I am going to make use of the watchdog Timer. > > I want to cause a crash to verify that the WDT brings us back to life. > > Instead of going into an infinite loop "crash" I'd like to cause something more catastrophic. I tried a divide by zero scenario but we don't crash (even without the WDT implemented). It is as if the compiler 'optimized' this (divide by zero) line out. > > How can I cause a good catastrophic crash (like divide by zero)? > > Keep in mind that I don't want cause the catastrophic crash by using 300VDC for my source voltage, as this is very difficult to recover from. > > :) > > Thanks Guys! > > [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] Cause a crash
2013-01-12 by Jim Wagner
Attachments
- No local attachments were found for this message.