.. _sec-debug-interface:

Debug Interfaces
================

The |DEVICE| platform supports :term:`SWD`
interfaces. Debug probe that support SWD like the TI XDS110
can work natively with the |DEVICE|. The hardware resources included on the devices for
debugging are listed as follows. Not all debugging functionality is available
in all combinations of debug probe and IDE.

- Flash Patch and Breakpoint Unit (FPB) - 6 instruction comparators, 2 literal
  comparators

- Data Watchpoint and Trace Unit (DWT) - 5 watchpoints on memory access

- Instrumentation Trace Macrocell (ITM) - 32 x 32 bit stimulus registers

- Trace Port Interface Unit (TPIU) - serialization and time-stamping of DWT and
  ITM events


XDS110 Debug Probe
------------------

The |LP| support a 20-pin LP-EM debug connector, and the |LP_XDS110ET| is the 
assumed debug probe for most development.

The XDS110 is the latest entry level debug probe (emulators) for TI embedded
processors. Designed to be a complete solution that delivers JTAG and SWD
connectivity at a low cost, the XDS110 is the debug probe of choice for
entry-level debugging of TI microcontrollers, processors and SimpleLink
devices. Also, both Core Processor and System Trace are available for all Arm
and DSP devices that support Embedded Trace Buffer (ETB).

It is also possible to buy the `XDS110 JTAG Debug Probe`_ or use the XDS110 
existing on-board another SimpleLink LaunchPad.

Segger J-Link Probes
--------------------

The |DEVICE| platform also supports Segger J-Link Probes. These probes support
standard debug and flash operations on the |DEVICE|. To create a J-Link compatible image,
the ``crc_tool`` resource included in ``{SDK_INSTALL_DIR}/tools/common/crc_tool`` should be
used to calculate the CRC. This can be done through the use of a post-build step. 

The :ref:`add_crc_to_elf_file_ccfg` section, provides details on how to use the
``crc_tool`` along with code snippets showcasing its use.

The J-Link Real Time Transfer (RTT) feature may be used with the |DEVICE| platform
when using a J-Link probe by following the guidance outlined in the
`Segger Real Time Transfer (RTT) website <https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/>`_.

To obtain a Segger J-Link probe, please visit the `Segger website <https://segger.com>`_.
