 | Discussion Forum |  |
|
|
Soft ResetNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Philip Garman Posted 14-Aug-2003 07:59 GMT Toolset C51 |  Soft Reset Philip Garman 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 |  RE: Soft Reset chao lin 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 |  RE: Soft Reset erik malund 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 |
|