Discussion Forum

Soft Reset

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Philip Garman
Posted
14-Aug-2003 07:59 GMT
Toolset
C51
New! Soft Reset
I'd like to perform a "warm restart" by running the startup routines upon detection of an error. How can I "goto" the reset vector using C51?

For example:

void main(void)
  {
  ...
  ...
  val = CheckForError();
  if(val)
    {
    // perform soft reboot here
    goto ????;
    }
  ...
  ...
  }

Thanks in advance
Read-Only
Author
chao lin
Posted
14-Aug-2003 08:47 GMT
Toolset
C51
New! RE: Soft Reset
you can refer to

http://www.keil.com/support/docs/307.htm

chao.
Read-Only
Author
erik malund
Posted
14-Aug-2003 13:37 GMT
Toolset
C51
New! RE: Soft Reset
The only truly reliable way to do a warm restart it to let a watchdog time out.

Erik

Next Thread | Thread List | Previous Thread Start a Thread | Settings