This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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

Parents Reply Children