(post is contained in attachment for printable format)
The XDS100 emulator is a low-cost JTAG emulator hardware interface option for interfacing to Stellaris devices when using the Code Composer Studio IDE.
For additional details specific to the XDS100 emulator, see XDS100 – Texas Instruments Embedded Processors Wiki. Purchasing details can also be found there. (http://processors.wiki.ti.com/index.php/XDS100)
Stellaris evaluation kits are available with evaluation copies of IDEs from 5 tool vendors, TI’s CCS, Keil’s RealView, IAR’s Embedded Workbench, CodeSourcery’s Sourcery G++, and Code Red’s Technologies tools. Currently only CCS has support for XDS100 interfacing to Stellaris devices.
Configuring CCS to Use the XDS100
When using an existing code example from StellarisWare, the CCS target configuration defaults to the Stellaris ICDI and must be changed to select the XDS100. To change the target configuration:
1.) open target.config.ccxml in Active-Debug project
1.) In the Connection drop-down box, select Texas Instruments XDS100v2 USB Emulator. If using a Stellaris EK- or DK- evaluation kit, the Board or Device is automatically selected. Choose the device if it not already selected. Click Save under Save Configuration.
Hardware Connections
The XDS100 emulator has a 14-pin TI JTAG header. Most Stellaris evaluation kits have a 20-pin ARM JTAG header. To connect the XDS100 emulator to a Stellaris kit (or a custom board with a Stellaris device) the following connections must be made:
14-pin TI |
|
20-pin ARM |
||
Pin |
Signal |
Connect to |
Pin |
Signal |
1 |
TMS |
7 |
TMS |
|
2 |
TRSTn |
|
|
|
3 |
TDI |
5 |
TDI |
|
4 |
TDIS |
GND |
GND*1 |
|
5 |
VTRef |
3.3V |
*2 |
|
6 |
KEY |
|
|
|
7 |
TDO |
13 |
TDO |
|
8 |
GND |
|
|
|
9 |
RTCK |
|
|
|
10 |
GND |
|
|
|
11 |
TCK |
9 |
TCK |
|
12 |
GND |
GND |
GND |
|
13 |
EMU0 |
|
|
|
14 |
EMU1 |
|
|
|
*1: Any ground is acceptable. Proper ground referencing must be in place between the XDS100 emulator hardware and the Stellaris board. *2: 3.3V is not present on the Stellaris evaluation kits’ 20-pin ARM headers |
Note, all pins that are not highlighted in the 14-pin TI columns or listed in the 20-pin ARM columns should be no connects.
The connections can be wired manually or with a 14-pin TI to 20-Pin ARM adapter. Note, that Stellaris evaluation kits do not have pin 1 at Vdd on the 20-Pin ARM header. Therefore, VTRef on the 14-pin TI header must be connected to a 3.3V reference point on the evaluation board.
Shown in the photo below is the 14-pin header on the XDS100 emulator next to a Stellaris evaluation kit with a 20-pin ARM header. Pin 1 is circle on each of the headers. On the XDS100 emulator pin 1 is designated by a 1 on the silk screen. For most Stellaris evaluation kits with a 20-pin ARM header, pin 1 is designated by a small triangle.
Stellaris Applications Engineering has tested and verified the correct operation of the XDS100v2 emulator interface with the CCS IDE for all Stellaris LM3S evaluation kits, with the exception of the EK-LM3S811 kit. When interfacing to the EK-LM4F232, the attached xml file must be placed in the CCS folder: ccs/common/targetdb/drivers folder. (Attached xml file: 5340.tixds100v2cortexM.xml)
Common Questions and Answers
Q: I received the following error message when programming and launching the debugger: Device ID is not recognized or is not supported by driver.
A: Check that the device in use is not from the LM3SX00 series. If it is not, then verify that the XDS100 emulator device drivers are properly installed in the Hardware Device manager. If the divers appear to be installed and configured properly, check the wiring to ensure no wires have been incorrectly connected.
Q: I received the following error message when programming and launching the debugger: This utility failed to open the adapter for a custom emulator.
A: Check to ensure that the XDS100 emulator is selected for connection in the file target.config.ccxml.
Q: I received the following error message when programming and launching the debugger: The controller has detected a cable break far-from itself.
A: TDIS on the 14-pin TI header may not be connected to ground correctly.
Q: I received the following error message when programming and launching the debugger: The controller has detected a target power loss.
A: VTRef on the 14-pin TI header may not be connected to a 3.3V voltage reference correctly. Note: Stellaris evaluation kits do not have 3.3V at pin 1 on the 20-pin ARM header.
Q: I received the following error message when programming and launching the debugger: This utility failed to open the adapter for a custom emulator.
A: Check to ensure that the XDS100 is properly powered. LED DS1 should be green on the XDS100 emulator board.
Q: I want to connect the XDS100 emulator to a 10‐pin ARM header on a Stellaris RDK board. What is the best way to make the connection?
A: It can be done, but the 10‐pin ARM header has smaller gauge pins, making it more difficult to ensure proper manual connections. Some Stellaris kits come with a 10‐pin ARM to 20‐pin ARM adapter, MDL‐ADA2 (http://www.ti.com/tool/mdl‐ada2) or you can buy it for only $20.00. If possible, it is preferable to use this connector, as it is much easier to make reliable connections.
If connecting to a 10‐pin ARM header is required, connect VTRef to a 3.3 V source on the board and connect TDIS and GND to a ground on the board to minimize the number of wires connected to the 10‐pin header. Pin connections for the 10‐pin ARM header are:
Pin 2 – TMS
Pin 4 – TCK
Pin 6 – TDO
Pin 8 – TDI
Q: Does the XDS560 emulator support Stellaris devices?
A: No, the XDS560 supports higher performance devices. Stellaris devices are lower-end stand-alone microcontrollers for deeply embedded applications.
Q: I want to connect the XDS100 emulator to the LM4F232 evaluation board. What is the best way to make the connection?
A: On the LM4F232 evaluation board, there are 4 breakout headers next to the J1:10-pin ARM JTAG header. Solder 4 header pins to TDI, TDO, TCK, and TMS and connect the signals to 14-pin TI JTAG header. Connect TDIS to a GND pin and VTRef to a 3.3V pin on the LM4F232 evaluation board.