## Installing JTAG

#### Install the JTAG Software

##### Using Lauterbach Hardware

1. Program Lauterbach with Proper License

You will need a 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.

##### Related Tasks

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