Re: How to find why the system reset?



On Jul 31, 5:18 pm, Steven Woody <narkewo...@xxxxxxxxx> wrote:
hi,

may be caused by a buggy code somewhre, a system we developed under
M16C microprocessor will reset itself in some cases. i want to find
out what's the cause of the reset ( the hardware watchdog was turned
off ). is there any idea about this kind of problem? and, could you
please introduce any method used to detect causes of system reset?

thanks in advance.

-
narke

This type of thing usually happens to me when I'm not wiggling the
watchdog pin frequently enough.
What I do is that the watchdog wiggling function also writes a byte
value into a safe location. Whenever the system resets, this value is
shown during the self-test procedure.
This way I can tell where the program was before the reset occurred.

Maybe it's a stack overflow?

.



Relevant Pages

  • [WATCHDOG] v2.6.24 Watchdog Device Drivers patches - part 4
    ... IT8212F watchdog driver ... This patch enables the watchdog to read out the reset cause after a boot and ...
    (Linux-Kernel)
  • Re: Using a small 8-bit micro (LPC900) as external reset / watchdog device!?
    ... Watchdog and Reset are probably not worth the while but ... In fact I have seen hot plug functionality with CAN in the past as well ... >> and a defined startup time, it is very easy to control the reset ... >> communication with the larger micro before it generates a reset. ...
    (comp.arch.embedded)
  • [WATCHDOG] v2.6.24 Watchdog Device Drivers patches - part 4
    ... Adds support for the built-in watchdog on EPIC Nano 7240 boards from IEI. ... This patch enables the watchdog to read out the reset cause after a boot and ...
    (Linux-Kernel)
  • Re: Porterweiterung per SPI
    ... vielen meiner SPI Geschichten waere ein harter Reset beinahe mit ... zurückfinden (watchdog z.B.) und dann auf die nächste Start-Bedingung ... erlauben, den Bus einfach ewig zu blockieren, das ist trivial. ... Reset kommt, ...
    (de.sci.electronics)
  • [PATCH] 2.6.0-test4 - Watchdog patches - Documentation
    ... move all watchdog documentation into Documentation/watchdog/ ... the WDT card does, only it doesn't require an IRQ to run. ... signals to it so it doesn't reset your computer ... ... drivers have initialized, you can then talk to the card using the PC ...
    (Linux-Kernel)