
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
347 of 368
22.1 How to read this chapter
The debug functionality is identical for all LPC13xx parts.
22.2 Features
•
Supports ARM Serial Wire Debug mode.
•
Direct debug access to all memories, registers, and peripherals.
•
No target resources are required for the debugging session.
•
Trace port provides CPU instruction trace capability. Output via a Serial Wire Viewer.
•
Eight breakpoints. Six instruction breakpoints that can also be used to remap
instruction addresses for code patches. Two data comparators that can be used to
remap addresses for patches to literal values.
•
Four data watchpoints that can also be used as trace triggers.
•
Instrumentation Trace Macrocell allows additional software controlled trace.
22.3 Introduction
Debug and trace functions are integrated into the ARM Cortex-M3. Serial wire debug and
trace functions are supported. The ARM Cortex-M3 is configured to support up to eight
breakpoints and four watchpoints.
22.4 Description
Debugging with the LPC13xx uses the Serial Wire Debug mode.
Trace can be done using the Serial Wire Output. When the Serial Wire Output is used,
less data can be traced, but it uses no application related pins. Note that the trace function
available for the ARM Cortex-M3 is functionally very different than the trace that was
available for previous ARM7 based devices.
22.5 Pin description
The tables below indicate the various pin functions related to debug and trace. Some of
these functions share pins with other functions which therefore may not be used at the
same time. Trace using the Serial Wire Output has limited bandwidth.
UM10375
Chapter 22: LPC13xx Serial Wire Debug (SWD)
Rev. 3 — 14 June 2011
User manual