Difference between revisions of "JTAGLoad"

From SEGGER Wiki
Jump to: navigation, search
(Command lines)
m
 
Line 1: Line 1:
 
[[File:JTAGLoad.png | thumb | 400px | right | J-Link RTT Viewer]]
 
[[File:JTAGLoad.png | thumb | 400px | right | J-Link RTT Viewer]]
JTAGLoad is a command line tool, available for as part of the [[J-Link Software and Documentation Pack]], downlaodable from the [https://www.segger.com/downloads/jlink#J-LinkSoftwareAndDocumentationPack SEGGER homepage].<br>
+
JTAGLoad is a command line tool, available for as part of the [[J-Link Software and Documentation Pack]], downloadable from the [https://www.segger.com/downloads/jlink#J-LinkSoftwareAndDocumentationPack SEGGER homepage].<br>
 
It can be used to open and execute an svf (Serial vector format) file for JTAG boundary scan tests.
 
It can be used to open and execute an svf (Serial vector format) file for JTAG boundary scan tests.
 
The data in the file will be sent to the target via J-Link / J-Trace.
 
The data in the file will be sent to the target via J-Link / J-Trace.

Latest revision as of 21:06, 1 March 2021

J-Link RTT Viewer

JTAGLoad is a command line tool, available for as part of the J-Link Software and Documentation Pack, downloadable from the SEGGER homepage.
It can be used to open and execute an svf (Serial vector format) file for JTAG boundary scan tests. The data in the file will be sent to the target via J-Link / J-Trace.


SVF commands supported by JTAGLoad

  • ENDDR
  • ENDIR
  • FREQUENCY
  • HDR
  • HIR
  • RUNTEST
  • SDR
  • SIR
  • STATE
  • TDR
  • TIR

Command lines

Command Description
/? Shows how to call JTAGLoad.
-NoAutoExit Prevents JTAGLoad from auto exiting.
-LogFile Sets the log file path to <Path>.
-IP Connect to J-Link via TCP/IP.
-SelectEmuBySN Connect to J-Link via its serial.
-USB Connect to J-Link via USB.

SVF (Serial Vector Format)

SVF is a standard format for boundary scan vectors to be used with different tools and targets. SVF files contain human-readable ASCII SVF statements consisting of an SVF command, the data to be sent, the expected response, a mask for the response or additional information.

Example

A simple SVF file to read the JTAG ID of the target can look like the following.

! Set JTAG frequency
FREQUENCY 12000000HZ;
! Configure scan chain
! For a single device in chain, header and trailer data on DR and IR are 0
! Set TAP to IDLE state
STATE IDLE;
! Configure end state of DR and IR after scan operations
ENDDR IDLE;
ENDIR IDLE;
! Start of test
! 32 bit scan on DR, In: 32 0 bits, Expected out: Device ID (0x0BA00477)
SDR 32 TDI (0) TDO (0BA00477) MASK (0FFFFFFF);
! Set TAP to IDLE state
STATE IDLE;
! End of test

Note: SVF files allow even more complex tasks, basically everything which is possible via JTAG and the devices in the scan chain, like configuring an FPGA or loading data into memory.