Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The XS-CMSIS-DAP product package contains:

  1. One XStream-Iso adapter

  2. One 6 feet long USB-A to USB-B cable

  3. FPA to ARM 14-pin to 20-pin and 10 pin adapter (PE036X02) and ribbon cables

The CMSIS-DAP debugging software run under Windows 7 to 10. Follow instruction below to install the software:

  1. Download XS-CMSIS-DAP-win.zip, unzip it and run setup.exe.

  2. The setup wizard appears automatically after clicking setup.exe. Begin the installation process.

  3. Once the installation program starts, on-screen instructions will guide you through the remainder of the installation. You must accept the license agreement before using this software.

2.1 Driver Installation

The installation program will place the USB driver files in Windows directories “Windows\inf" and “Windows\system32\drivers". When the CMSIS-DAP debugging software is installed then by default the drivers are preinstalled automatically. If for any reason the device cannot be seen under Device Manager when the adapter is plugged-in to USB port, then install the drivers manually. Drivers are located in the directory:

  • C:\Program Files (x86)\Elprotronic\Drivers XStream\WIN64

https://content.elprotronic.ca/downloads/Signed-Drivers.zip

3. Setup - Main Configuration Utility

...

This section will describe how to configure the adapter in Debugger mode:

  1. Connect XStream adapter to PC.

  2. Run the CMSIS-DAP configuration software.

    1. Run XStream CMSIS-DAP shortcut, or the executable directly

    2. C:\Program Files (x86)\Elprotronic\CMSIS-DAP\XS_CMSIS_DAP_cfg.exe

  3. You should see Main GUI with the adapter’s label and selected configuration as seen in Figure 3.1.

  4. Select “CMSIS-DAP Debugger (2.0)” mode in “Adapter Option Selection” box.

  5. Check if the CMSIS-DAP firmware version inside the adapter is the same as the available firmware version in the configuration software. If firmware is not the same or the check sum/PSA is not OK, then press the Update FW button and the firmware inside the XStream adapter will be updated.

  6. The target can be powered by the adapter,

    1. The CMSIS-DAP 2.0 protocol does not explicitly control power supply, but the XStream adapter has the option to supply the target. That is why the user must choose between external power supply or configure the XStream adapter’s output voltage.

    2. Check the “Power from Adapter Enable” box and set Voltage level. The XStream-Iso adapter can supply Vcc from 1.7V to 4.0V, or if the XStreamPro-Iso adapter is used from 1.2V to 4.0.

    3. Change the Vcc Settle time to specify the time from when the power-up of the target is initiated to when other circuits on the target board are stable. The Settle time can be specified in the range from 50 to 300 ms. By, default that time is set to 50 ms. When finished, press the “Save” button to store the configuration inside the XStream adapter.

  7. Save the new configuration. The adapter will now restart; wait a few seconds before the adapter reboots and new settings are detected by the Device Manager.

4. Debugging with IDE

When the XStream adapter is set for CMSIS-DAP debugging mode the adapter is ready to be used with any IDE that supports the CMSIS-DAP 2.0 USB protocol. Below is the setup description for two IDEs that support the CMSIS-DAP 2.0 USB protocol – Keil uVision and IAR EW-ARM.

...

This section describes the steps necessary to run the CMSIS-DAP 2.0 Debugger (XS) with Keil.

  1. Run the Keil uVision 5 or higher

  2. Select Option for Target, see below:

    Image Modified
  3. In Tab Debug select the option CMSIS-DAP Debugger.

  4. Press button Settings then the following screen should be displayed, see below:

    Image Modified
  5. On the CMSIS-DAP – JTAG/SWD Adapter drop-down menu, XStream-Iso CMSIS-DAP should be selected.

  6. Select desired communication protocol, JTAG or SWD and desired communication speed.

  7. If target device is connected then in the SW Device box, valid IDCODE and Device Name should be displayed.

  8. The XStream adapter is ready for debugging via CMSIS-DAP protocol.

  9. Select and set the Trace option if applicable.

4.2 IAR EW-ARM

This section describes the steps necessary to run the CMSIS-DAP 2.0 Debugger (XS) with IAR.

  1. Run the IAR EW-ARM 9.1 or higher

  2. Select Options->Debugger, see below:

  3. Image Modified

    Select the CMSIS DAP Debugger.

  4. Go to CMSIS DAP option setup, see below:

    Image Modified
  5. Select Interface type JTAG or SWD and desired communication speed.

  6. The XStream adapter is ready for debugging via CMSIS-DAP protocol.

  7. Select and set the Trace option if applicable.