UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
173 of 258
18.1 How to read this chapter
The debug functionality is implemented on the LPC1102.
18.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.
•
Four breakpoints. Four 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.
•
Two data watchpoints that can also be used as triggers.
18.3 Introduction
Debug functions are integrated into the ARM Cortex-M0. Serial wire debug functions are
supported. The ARM Cortex-M0 is configured to support up to four breakpoints and two
watchpoints.
18.4 Description
Debugging with the LPC1102 uses the Serial Wire Debug mode.
18.5 Pin description
The tables below indicate the various pin functions related to debug. Some of these
functions share pins with other functions which therefore may not be used at the same
time.
Remark:
Note that the SPI clock SCK and the serial wire debug clock SWCLK share the
same pin on the WLCSP16 package. Once the SPI is enabled, the serial wire debugger is
no longer available.
UM10429
Chapter 18: LPC1102 Serial Wire Debug (SWD)
Rev. 1 — 20 October 2010
User manual
Table 190. Serial Wire Debug pin description
Pin Name
Type
Description
SWCLK
Input
Serial Wire Clock.
This pin is the clock for debug logic when in the
Serial Wire Debug mode (SWCLK). This pin is pulled up internally.
SWDIO
Input /
Output
Serial wire debug data input/output.
The SWDIO pin is used by an
external debug tool to communicate with and control the LPC1102.
This pin is pulled up internally.