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

bad instruction

Hi,

I am having a while(1){} loop and all interrupt disabled. It loops for a while and then gets out of the loop, jumping to a random address (not interrupt vectors) or break of out the loop and continues sequentially from there. Is there anyway to detect a bad instruction fetch? In other microcontroller, a bad instruction would branch to an interrupt vector.

Thanks,

Anh