I want to force a reboot if a serious error occurs. I have tried the _trap_(0x00); function which inserts the SRST instruction but nothing happens. In debug mode i get an error message in the output window - Error occured during device access.
What does the mean and how can i force a reboot?
Any help appreciated.
Im not using the Watchdog.
How about using it? That is, the implementation of your soft reset function would enable the watchdog, program it for the shortest interval you can, and then spin, waiting for the WDT to reset the chip.
Thanks guy's ...