Programming SVF-Files using a JTAG connection

Many new programmable devices contain a JTAG interface that is standardized. You can use it for programming any JTAG devices even when they are not listed in the device list. The data to program must be available in SVF (Serial Vector Format), XSVF, or JAM format. Data in other formats can be programmed using the OpenOCD software.

Programming with XSVF and JAM files works the same way as for SVF-files; XSVF– Xilinx binary format of SVF, JAM - SVF-like script files with more complex content.

Programming

Select Device/SPECIAL/JTAG/SVF_PLAY for running SVF-files through JTAG. A SVF interpreter generates the JTAG control signals on Galep4 or Galep5 pins. The SVF-file (*.svf) has to be generated by the user. It contains the required actions such as erasing, programming, verifying or testing the device.

The JTAG target has to be connected as described below.

Load SVF file to buffer. ( selected data type is *.*, with load as „svf“ in file type selection).

Select the target digital logic level in JTAG-Options menu.

Execute the SVF file with PROGRAM F3 action. Other actions will not work.

Hints:

Only one JTAG device connection is supported. Device chains with additional header and trailing JTAG-devices are not supported. The SVF commands HIR ,HDR, TIR and TDR are ignored (bit number is set to 0 preliminary).

The SVF-commands „PIOMAP“ and „PIO“ are not implemented and will be ignored.

Set FREQUENCY to 500000 for SVF compiler. GALEP provides a maximal TCK frequency of 500KHz.

It is not possible to read back any device contents.

Connection:

You do not necessarily need to use the ISP adapter. Connect only the related Galep4- or Galep5 Pins and GND to your target JTAG port:

Galep4 Pin No.

Galep5 Pin No.

ISP pin Connector function

ISP Connector definition

or

Galep ISP adapter Part No. 210865 Connector N5(10pol.)

Pin No.:

Note

16

20

GND

10


17

21

NC

8


18

22

NC

6


19

23

NC (VCC)


4

Some programming interfaces require a power supply by the target. This pin is not connected to Galep power supply and not supported by Galep.

20

24

GND

2


21

25

TCK

1

Output

22

26

TDO

3

Input

23

27

TMS

5

Output

24

28

NC

7


25

29

TDI

9

Output

NC

38

Reset

NC

Reset Target

Active if SVF file or Target contains TRST commands.

Galep4 and Galep5 Pin connections for JTAG and with use of ISP-adapter 210865.

Fig. 1:JTAG connection, connector N5 on Galep4 ISP-Adapter Part No. 210865

Links:

More Infos about SVF scripts:

http://www.asset-intertech.com/support/svf.html

http://www.asset-intertech.com/support/svf.pdf



SVF to XSVF converter:

http://www.ethernut.de/en/xsvfexec/

http://direct.xilinx.com/bvdocs/appnotes/xapp503.pdf

Batch example. svf2xsvf502.exe -nc -d -i at1504_.svf -o at1504.bin