Liwei Song

Fast way to locate the place where error occurs?

Discussion created by Liwei Song on Jul 4, 2007
Latest reply on Jul 5, 2007 by Tom Thompson
Hi,
    Nowadays I am writing code on sc140 and sc3400.  Sometimes an exception occurs when the code accesses unavailable memory or illegal instruction, then the processor will go to an ISR. If there are many functions in the codes, it is difficult to locate the place. I am wondering that whether a register exist which can tell the kind of exception, and a register that tell me the place where the instrution is executed and a exception occurs.
  Thanks
Jogging

Outcomes