| |||
| Home > Controlling Tracing > Trace filtering > Programming strategies | |||
Both TraceEnable and ViewData are controlled with events and resources. There are two possible programming strategies. You can do either or both of the following:
Use address comparators to set address ranges inside which trace is enabled.
Set one or more addresses to turn on tracing and set one or more addresses to turn it off.
This is controlled by the trace start/stop block. The state of the trace start/stop block is given by the trace start/stop resource. For more information see:
The advantage of using the trace start/stop resource is that any subroutine calls that are outside the function address range are also included in the trace.