Tracepoints can be set in two different views. When editing code using the assembly or C/C++ editors you can add a line tracepoint by pressing Ctrl+Alt+T on a line. Performing the same operation when in the disassembly view will create a address tracepoint. Pressing the same keyboard combination again on a line where a tracepoint already exists will remove the tracepoint.
You will also get access to the tracepoint menu by right clicking on the C/C++ or assembly editor vertical ruler.
When a new tracepoint is being created the tracepoint properties view will open. If the cursor was placed on a global variable declaration, a data tracepoint will be created.
Please note that due to limitations in the platform AVR32 Studio builds on, address tracepoints will not show in the disassembly view vertical ruler. They will show in the breakpoints view though.
Unless OCD resources has been exhausted a new tracepoint will initially be disabled. The Tracepoint is enabled check box can be used to change this state.
The Trigger event radio boxes are used to select which kind of event will trigger the tracepoint. One of these values must be chosen:
If one of the data events are selected the Range option is enabled. Using this you can select a range of addresses or variables that will trigger trace.
If the Trigger location is set to Location you may trigger trace by comparing the trigger value to a byte mask or a set value.
The Tracepoint type is used to specify which kind of trace will be enabled. Both data trace and program trace can be started by the trigger. When data trace is enabled you may also set which area of the memory shall be traced. This is done using the launch configuration.
The Trace operation option is used to specify the operation of the tracepoint. It can simply emit a single trace message. Or it can be used to start or stop trace.
In the vertical ruler and the breakpoints view, various icons are used to illustrate tracepoints. These are as follows:
![]() | Simple message emitting tracepoint. |
![]() | Tracepoint that will start data or program trace. |
![]() | Tracepoint that will stop data or program trace. |
![]() | Disabled tracepoint. |