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 ????; } ... ... }
you can refer to http://www.keil.com/support/docs/307.htm chao.
The only truly reliable way to do a warm restart it to let a watchdog time out. Erik