AnsweredAssumed Answered

Where am I, in emulator/debugger or in flash-based execution?

Question asked by wjc on Aug 3, 2012
Latest reply on Aug 7, 2012 by CraigG

I have a piece of code that is running under the CCES/emulator when I need to debug it.  This code is also used in the production code without the CCES/emulator.  I need to be able to distinguish the two in runtime because the production code will force a reset but the debug code can not reset.  Currently I am going in the code to disable the reset if this is a debug execution with CCES.  I hope I do not need to be bother with this extra step since I always forget about it the very first time.  Is there a run time register or variable I can check to let the program do the right thing for me?