Trace and Profile

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

  1. Right-click on the project and right-click -> Debug as -> Debug Configurations. The Debug Configuration dialog box will appear.
  2. In the left column, select the project type for which you would like to set the TraceLink settings.
  3. In the right column, select the Trace and Profile tab.
    Figure 1. Trace and Profile Tab
    Trace and Profile Tab
  4. Click on the Enable Trace and Profile checkbox.
  5. Change the other user settings that fits the users needs.
  6. 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.
  7. Once the correct connection setting is selected, click on the Edit button. The launch configuration dialog box will appear.
  8. 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
    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.