## Installing JTAG

#### Install the JTAG Software

##### Using Lauterbach Hardware

1. Program Lauterbach with Proper License

You will need a Trace32 (Lauterbach), a USB cable, and a Lauterbach power supply. You will need to program the Lauterbach with licenses for the particular processors you will be targeting.

Older Lauterbachs have Xscale for Lubbock and ARM9 for H2/Renesas licenses installed on them already. Newer Lauterbachs should have ARM9 for H2/Renesas and ARM11 for H4 licenses installed on them already. If you don’t have the proper license installed on the Lauterbach for the processor you want to work with, you will receive an error when launching a debug session.

2. Run the Trace32 Installer
   - Run the Setup.bat file. During installation select the following options:
     Product Type: In-Circuit Debugger
     ICD interface Type: USB Interface
     Selection of license for new software: License key not necessary
     CPU selection: ICD ARM7 ARM9 ARM10 ARM11 ICD XSCALE
3. Install the USB Drivers

1. Place a Trace32 CD into the host machine.
2. Plug in the USB connector from the Lauterbach into the host machine.
3. Once the host machine detects the connection, install the drivers from the CD.

4. Copy Trace32 License File to T32 Folder

The newer Lauterbachs require a license file in the T32 folder. Copy the trace32 license file called license.t32 to your C:\T32 folder.

5. Copy Trace32 Configuration File

For H4 board: Copy the trace32 configuration file for the non-ARM11 processor, called config_arm11.t32, to your C:\T32 folder. You can also modify the default config_arm11.t32 file. This file needs to be modified to specify the port number and also enable T32 to support debugger commands outside T32. Carbide.c++ provides specific T32 config files in the support folder. The default config file will be called carbideconfig.t32.

6. Set up the Board

Power up the board. You should now be able to download the image.

##### Using Sophia Hardware

1. If needed, install the following Watchpoint debugger software:

   Watchpoint ARM9
   Watchpoint ARM11
   CodeWarrior - Watchpoint Connection tool
   Driver for USB dongle for STI ARM
   Watchpoint ARM9 Help Files

2. Setup Watchpoint

Copy and unzip Watchpoint project and initialization files to any directory on your PC.

3. Establish Target Connection
   1. Plug USB dongle into your PC, and install the drivers if necessary.
   2. Connect Sophia EJ-Debug JTAG device to the Jtag on the mother board (make sure SW3-7 is off) and to PC via USB cable.
   3. When Windows prompts you for a driver, navigate to your WATCHPOINT\US_ARM9 or WATCHPOINT\US_ARM11 installation.
   4. Open the WatchPoint project file. If it launches successfully, you have established a connection.

   After successfully opening the project file, make sure that for the H4 target, the Jtag clock is set to 8.33MHz. This can be done from the Resource menu of WatchPoint. Select the ‘ICE Configuration’ option and then select the ‘Clock’ tab. Check the 8.33 MHz radio button and apply the settings.

##### Related Tasks

- Stop Mode On-Device Debugging Preconditions
- Defining a Stop Mode Debug Configuration