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
  • Err - No - The debugger was not surprised, even if the hardware runs without the debugger, still it does not reset. The only clue i have is (as i said before) when debugging and the reset command is executed, i get 'device access error' in the output window.

    Maybe a little more help rather than picking faults in my grammer might be better.

    So just to clarify, when running standalone and the _trap_(0x00) command is executed, the chip does not appear to reset. I expected the chip to reboot the code and start again. This is not the case.

    Any helpful, non sarcastic advice welcome.

Reply
  • Err - No - The debugger was not surprised, even if the hardware runs without the debugger, still it does not reset. The only clue i have is (as i said before) when debugging and the reset command is executed, i get 'device access error' in the output window.

    Maybe a little more help rather than picking faults in my grammer might be better.

    So just to clarify, when running standalone and the _trap_(0x00) command is executed, the chip does not appear to reset. I expected the chip to reboot the code and start again. This is not the case.

    Any helpful, non sarcastic advice welcome.

Children