µVISION DEBUGGER: STARTING AND STOPPING TRACE CAPTURE
Information in this article applies to:
Is there a way in the µVision Debugger to start and stop trace recording dynamically as my program runs? There are only a few places where I want to record the instructions that are executed.
Yes. The µVision Debugger has a System Variable named itrace that you may use to enable or disable trace recording. This trace only works for the simulator and not the monitor debugger (mon51, mon166, mon251). For example:
itrace = 1; /* Enable Trace Recording */ itrace = 0; /* Disable Trace Recording */
You may download the µVision Simulator C166 Trace Memory Example attached to this article for a more complete example.
Request the files attached to this knowledgebase article.
Last Reviewed: Saturday, May 28, 2005
of your data.