Keil Logo

Enable Serial Wire Trace

To enable Serial Wire Trace on an NXP LPC17xx device:

  • Connect the J-Link/J-Trace debugger adapter with the board's Cortex Debug connector and with the host computer.
  • Configure µVision to capture Serial Wire Trace data.

Configure µVision to capture Serial Wire Trace data

  1. Open the dialog Options for Target — Debug.

    Enable trace on LPC17xx

  2. Enable Use, select Cortex-M/R J-LINK/J-Trace, and click Settings to open the Target Driver Setup dialog.

    Configure LPC17xx for Serial Wire Trace

  3. Select SW.
  4. Click the Trace tab.

    Configure LPC17xx for Serial Wire Trace

  5. Set Enable.
  6. Under Trace Port set Serial Wire Output - UART/NRZ and enable Autodetect max SWO Clk.
  7. The Core Clock must correspond to the device configuration.

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

Note

  • Use the examples delivered with the Keil board MCB1700 as a reference.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.