Visible to Intel only — GUID: sam1408410447321
Ixiasoft
1.1. Jam™ STAPL Players
1.2. Jam™ STAPL Files
1.3. Using the Jam™ STAPL Player
1.4. Using the quartus_jli Command-Line Executable
1.5. Using Jam™ STAPL for ISP with an Embedded Processor
1.6. Board Layout
1.7. Embedded Jam™ STAPL Players
1.8. Updating Devices Using Jam
1.9. Document Revision History for AN 425: Using the Command-Line Jam™ STAPL Solution for Device Programming
Visible to Intel only — GUID: sam1408410447321
Ixiasoft
1.7.2. Steps to Port the Jam™ STAPL Byte-Code Player
The default configuration of jbistub.c includes the code for DOS, 32 bit Windows, and UNIX. Because of this configuration, the source code is compiled and evaluated for the correct functionality and debugging on these operating systems.
For embedded environments, you can remove this code with a single #define preprocessor statement. In addition, porting the code involves making minor changes to specific parts of the code in jbistub.c.
Function | Description |
---|---|
jbi_jtag_io() | Provides interfaces to the four IEEE 1149.1 JTAG signals, TDI, TMS, TCK, and TDO. |
jbi_export() | Passes information, such as the user electronic signature (UES), back to the calling program. |
jbi_delay() | Implements the programming pulses or delays needed during execution. |
jbi_vector_map() | Processes signal-to-pin map for non-IEEE 1149.1 JTAG signals. |
jbi_vector_io() | Asserts non-IEEE 1149.1 JTAG signals as defined in the VECTOR MAP. |
Perform the steps in the following sections to ensure that you customize all the necessary codes.
- Step 1: Set the Preprocessor Statements to Exclude Extraneous Code
To eliminate DOS, Windows, and UNIX source code and included libraries, change the default PORT parameter to EMBEDDED. - Step 2: Map the JTAG Signals to the Hardware Pins
The jbi_jtag_io() function in jbistub.c contains the code that sends and receives the binary programming data. By default, the source code writes to the parallel port of the PC. You must remap all four JTAG signals to the pins of the embedded processor. - Step 3: Handle Text Messages from jbi_export()
The jbi_export() function uses the printf() function to send text messages to stdio. - Step 4: Customize Delay Calibration
The calibrate_delay() function determines how many loops the host processor runs in a millisecond. This calibration is important because accurate delays are used in programming and configuration.