2007-01-01 10:48 AM
2006-12-19 05:38 PM
I am using str710FZ2.
My questions are: 1.After watchdog resets the micro-processor, is there any mark to indicate this reset signal is generated by watchdog? 2. Is it possible that code can do something just before the watchdog generates reset signal? Any comment would be useful. Thanks and merry Christmas, Dawei2006-12-20 04:44 AM
Quote:
After watchdog resets the micro-processor, is there any mark to indicate this reset signal is generated by watchdog?
Yes, there is. It's the RCCU_CFR register.Quote:
Is it possible that code can do something just before the watchdog generates reset signal?
No, not directly. Why would you want to, anyway? Of course, you can always use another timer to generate an interrupt when the watchdog timer is about to expire. Regards, - mike2006-12-20 11:06 AM
Mike,
Thanks for your answers. About the second question what I want is to record what is the value in some variables, which routine is running, etc. when system forced to reset. It will be helpful to find the problem causes the reset. Regards, Dawei2006-12-23 07:24 PM
In this case, as I said, you can use another timer to generate an interrupt just before the watchdog timer is about to expire. You'd reload both timers periodically. I agree, it could be helpful to see if the program got stuck in an endless loop or a deadlock.
- mike2007-01-01 10:48 AM
All clear, thanks man and happy new year.