Chapter 14: Using Jam STAPL for ISP via an Embedded Processor
14–7
Software Development
You can include both Altera and non-Altera JTAG-compliant devices in the JTAG
chain. If you do not specify a programming file in the Programming File Names field,
devices in the JTAG chain will be bypassed.
Using Jam Files with the MAX II User Flash Memory Block
The Quartus II Programmer provides the option to individually target the entire
device, logic array, or the user flash memory (UFM) block. As you can program the
(UFM) section independently from the logic array, separate Jam STAPL and JBC
options can be used in the command line to separately program UFM and
configuration flash memory (CFM) blocks.
f
For more information, see “MAX II Jam/JBC Actions and Procedure Commands” on
page 14–15.
Jam Players
Jam Players read the descriptive information in Jam files and translate them into data
that programs the target PLDs. Jam Players do not program a particular device
architecture or vendor; they only read and understand the syntax defined by the Jam
file specification. In-field changes are confined to the Jam file, not the Jam Player. As a
result, you do not need to modify the Jam Player source code for each in-field
upgrade.
There are two types of Jam Players to accommodate the two types of Jam files: an
ASCII Jam STAPL Player and a Jam STAPL Byte-Code Player. The general concepts
within this chapter apply to both player types; however, the following information
focuses on the Jam STAPL Byte-Code Player.
Jam Players can be used to program or write the MAX II configuration flash memory
block and the UFM block separately since Jam STAPL and JBC files can be generated
targeting only to either one or both sectors of the MAX II UFM block.
Jam Player Compatibility
The embedded Jam Player is able to read Jam files that conform to the standard
JEDEC file format. The embedded Jam Player is compatible with legacy Jam files that
use version 1.1 syntax. Both Players are backward-compatible; they can play version
1.1 files and Jam STAPL files.
f
f
For more information about Altera’s support for version 1.1 syntax, refer to AN 122:
Using Jam STAPL for ISP & ICR via an Embedded Processor.
The Jam STAPL Byte-Code Player
The Jam STAPL Byte-Code Player is coded in the C programming language for 16-bit
and 32-bit processors.
For more information about Altera’s support for 8-bit processors, refer to AN 111:
Embedded Programming Using the 8051 & Jam Byte-Code.
The 16-bit and 32-bit source code is divided into two categories:
■
Platform-specific code that handles I/O functions and applies to specific hardware
(jbistub.c)
© October 2008 Altera Corporation
MAX II Device Handbook