Dbgjtag
From Texas Instruments Embedded Processors Wiki
Contents |
Debug JTAG aka "dbgjtag"
What is it?
dbgjtag is a command line tool designed to help debug connectivity problems with JTAG. It can be used for:
- Debugging JTAG scan chain problems
- Finding out how many JTAG TAPs are in your scan chain
- Finding the length of the JTAG TAPs
- Repetitively testing the scan chain with bit patterns to test the reliability of the scan chain.
Where can I get this utility?
- dbgjtag is available in the c:\ccstudio\cc\bin directory (depending on where you installed CCS).
Where can I find the documentation on this utility?
- The user's guide can be found here
The help manual can also be viewed by typing "dbgjtag -H manual" in a DOS shell at the command prompt while in the \ti\cc\bin directory.
What do I need to use this utility?
You need:
- CCS installed (any version)
- XDS100, XDS510, and XDS560 emulator installed. Note that some 3rd parties products may not work with dbgjtag such as Spectrum Digital. However, Spectrum Digital provides an excellent tool called "SDconfig" which helps perform similar functions.
How do I use it?
See Debugging JTAG Connectivity Problems
Some additional examples for Code Composer Studio v4, from the ccsv\common\uscif directory.
- Reset emulator and do basic scan path length tests (measure IR and DR paths)
dbgjtag -f <board config file> -rv -Spathlength
- Reset emulator and perform basic scan tests
dbgjtag -f <board config file> -rv -Sgivendata,repeat=10
- Reset emulator and perform scan tests ad infinitum ad nauseum.
dbgjtag -f <board config file> -rv -Sgivendata,repeat=0
where <board config file> = board config file name as created in ccsv4\DebugServer\bin\win32\BrdDat
You should create the board config file first, then copy it to the ccsv4\common\uscif so you don’t have to specify the path or worry about launching a different configuration and losing it.
Where can I get help on it's options?
- You can get help for dbgjtag by typing "dbgjtag -h" to get a brief help.
| C:\CCStudio_v3.3\cc\bin>dbgjtag -h
This utility has a version number of '35.24.0.3'. The brief help for each major option is its help command, [-X help]. The [-f] option is used to select board config files. The [-S] option is for scan-path data and instruction tests. |
- For a specific option, you can ask for help such as "dbgjtag -S help" to get additional help on a particular option.
| C:\CCStudio_v3.3\cc\bin>dbgjtag -S help
The '-S' major option supports scan-path data and instruction tests This option has a sub-argument that is a comma separated list -S help -S pathlength,bits=number,irsize=number,drsize=number, -S brokenpath,bits=number,repeat=number -S integrity,bits=number,repeat=number -S givendata,literal=value,bits=number,repeat=number,testcase=number -S givendata,expand=value,bits=number,repeat=number,testcase=number |
Leave a Comment

