ULINK2 User's Guide

Enable Serial Wire Trace

To enable Serial Wire Trace on Toshiba TMPM330 devices:

  • Use a ULINK2 connector interface that supports Serial Wire, and connect ULINK2 to the board and to the host computer.
  • Configure µVision to capture Serial Wire Trace data as described in the manual 32-bit RISC Microprocessor - TMPM330 Family, chapters Port A (PA0-PA7), and Port B (PB0-PB7).

Configure µVision to capture Serial Wire Trace data

  1. Open the dialog Options for Target — Debug.

    Select the debugger adapter

  2. Enable Use, select ULINK Cortex Debugger, and click Settings open the Target Driver Setup dialog.

    Set the Serial Wire Trace options

  3. Enable SWJ and select SW from the Port drop-down list.
  4. Click the Trace tab.

    Configure the Serial Wire Debug mode

  5. Set Trace Enable.
  6. Set the Trace Port to Serial Wire Output - Manchester.
  7. Enable Autodetect for the SWO Clock.
  8. Make sure the Core Clock is set correctly.

Start the debugging session and verify the captured trace data with a µVision window.

Note

  • Use the examples delivered with the Keil board MCBTMPM330 as a reference.