Using JTAG With The UCD3138 Establishing A JTAG Comms Link - Transcript
Using JTAG With The UCD3138 Establishing A JTAG Comms Link - Transcript
The target configuration files are the XML files used for configuring a device in
UniFlash and the main CCS application. The files are generated by specifying a
connection type on a board or device based on the emulation device support that was
installed.
Once the target configuration file is specified, users will be able to access the
available flash options, exercise flash operations, and load programs on the
configured device. You will only need to do this once per device emulator pair,
then you can save and reload this configuration for future use.
Select View Target Configurations. In the Target Configurations window, right click
on User Defined, and select New Target Configuration. Give the target configuration
a meaningful name. In my example, since I'm connecting to a UCD3138A via an
XDS100V2 JTAG emulator, I call it XGS100V2/UCD3138A. Click Finish. The target
configuration will appear.
In the Connect pulldown menu, select the emulator that you are using. Here I select
Texas Instruments XDS100V2 USB debug probe. For board or device, select the device
which you are planning to connect to via the JTAG emulator. Here I select the
UCD3138A. Save. Connect the JTAG emulator to the JTAG header on the open loop
board.
You'll also need to power the board. To do this, use the USB PMBus adapter. Click
Test Connection to test the JTAG connection to the UCD3138A. Scroll down to the
bottom of the popup window and check the result.
Now we are going to connect to a UCD device via the JTAG emulator. Make sure that
the target configuration that you have just saved is still the active window. Left
click on the bug icon in the toolbar. This opens the debug view. You need to be in
the CCS Edit perspective as opposed to the CCS Debug perspective to see the bug
icon.
Now select Run, Connect Target to establish the connection, or you can use the
short key combination Control plus Alt plus C, or you can click on the Connect icon
in the CCS toolbar. Check the console window to ensure that the connection was made
successfully.
Now we need to make a few small modifications to the default settings for this
target configuration. This only needs to be done once per target configuration.
Select the On Chip flash pane. This can also be reached via Tools, On Chip Flash.
On the menu on the left, select Program Memory Load Options. For verification
options, select No Verification, and then select Remember My Settings to save the
change you just made to this target configuration.
On the menu on the left, select Auto Run and Launch Options. Under Auto Run
options, delete Main and deselect on a program load or restart. Click Remember My
Settings. Select On Chip Flash on the menu on the left. This is the CCS JTAG flash
GUI window for the UCD devices. It supports most of the programming options that
the UCD PMBus device GUI supports.