The P&E TraceLink allows the user to capture real-time external trace information
without having to stop or disturb the running application. This allows the user to see the
real-time execution of their code by continuously recording the processor events. For
external trace captures, the P&E TraceLink supports ETM trace. The Kinetis chip must
have Trace_CLKOUT and Trace_D[3:0] pins to support ETM trace. Chips without these
pins can still be debugged by the TraceLink within CodeWarrior
- Right-click on the project and right-click -> Debug as -> Debug Configurations. The Debug Configuration dialog box will appear.
- In the left column, select the project type for which you would like to set the TraceLink settings.
- In the right column, select the Trace and Profile tab.
Figure 1. Trace and Profile Tab 
- Click on the Enable Trace and Profile checkbox.
- Change the other user settings that fits the users needs.
- Click on the Main tab and select the correct connection setting from the drop-down box or create a new connection by clicking on the New button.
- Once the correct connection setting is selected, click on the Edit button. The launch configuration dialog box will appear.
- When the TraceLink is selected as the interface, the Additional Options will be available. Change the Trace Max Buffer Size as the user sees fit by using the drop-down box. Refer to Debugger Settings.
Figure 2. Debugger Settings 
Note: Kinetis L-, E-, and M-Series devices can be debugged by the TraceLink, however Trace and Profile is currently not supported. Kinetis K-Series devices are fully supported.