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

Software Reset

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.

Parents
  • How can you say that nothing happens, and then continue with saying that you get "Error occured during device access."?

    Something definitely happened!

    Isn't it likely that the chip did reset, and that the error message was because your debugger was "surprised" that it lost the chip?

Reply
  • How can you say that nothing happens, and then continue with saying that you get "Error occured during device access."?

    Something definitely happened!

    Isn't it likely that the chip did reset, and that the error message was because your debugger was "surprised" that it lost the chip?

Children