Configuring Debugger in Code Composer Studio
--------------------------------------------

If only one debug probe is attached, |CCS| will automatically select the
connected debug probe when a debug session is started. You can start a debug
session by clicking the debug icon |img_icon_debug_ccs| on the toolbar.

.. |img_icon_debug_ccs| image:: /debugging/resources/icon_debug_ccs.png

If more than one debug probe is attached when a debug session is started, CCS
will prompt you to select a debug probe as seen in
:numref:`fig_ccs_probe_select` CCS will save the selected debug probe in the
target configuration for the project.

.. _fig_ccs_probe_select:

.. figure:: /debugging/resources/ccs_probe_select.png
    :align: center

    CCS Probe Selection

To set or change the selected debug probe for a project, it is necessary to set
the serial number for the probe in the project's target configuration.


Find The Serial Number
^^^^^^^^^^^^^^^^^^^^^^

To find the serial number for XDS110 debug probe, open a command prompt and run
the ``xdsdfu.exe`` command for your |CCS| version, e.g.
``c:\ti\ccs_7_3_0_00019\ccsv7\ccs_base\common\uscif\xds110\xdsdfu.exe -e``.
This will enumerate all the attached XDS110 debug probes. This should result in
output like the following.

.. code-block:: doscon

    C:\>c:\ti\ccs_7_3_0_00019\ccsv7\ccs_base\common\uscif\xds110\xdsdfu.exe -e

    USB Device Firmware Upgrade Utility
    Copyright (c) 2008-2015 Texas Instruments Incorporated.  All rights reserved.

    Scanning USB buses for supported XDS110 devices...


    <<<< Device 0 >>>>

    VID: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       2.3.0.9
    Manufacturer:  Texas Instruments
    Serial Num:    L1100017
    Mode:          Runtime

    <<<< Device 1 >>>>

    VID: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       2.3.0.9
    Manufacturer:  Texas Instruments
    Serial Num:    L11000EN
    Mode:          Runtime

    Found 2 devices.

    C:\>

For XDS100 series debug probes, open a command prompt and run the
``xds100serial.exe`` command for your CCS version, e.g. ``c:\ti\ccs_7_3_0_00019
\ccsv7\ccs_base\common\uscif\xds100serial.exe``. This should result in output
like the following:

.. code-block:: doscon

    C:\>c:\ti\ccs_7_3_0_00019\ccsv7\ccs_base\common\uscif\xds100serial.exe
    Scanning for XDS100 emulators...

    VID/PID    Type            Serial #    Description
    0403/a6d1  XDS100v3        06EB12213144  Texas Instruments XDS100v3

    C:\>


Configure Serial Number
^^^^^^^^^^^^^^^^^^^^^^^

It may be necessary to set or unset the selected debug probe. Use the following
steps to do this.

=======================================    ============================================================
1. Open the target configuration file.     .. image:: /debugging/resources/ccs_targetconfig_file.png
2. Open the Advanced pane.
3. Choose the top-level debugger entry.    .. image:: /debugging/resources/ccs_targetconfig_probe.png
4. Enter the serial number.                .. image:: /debugging/resources/ccs_targetconfig_serial.png
=======================================    ============================================================
